summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominique CLAUSE2014-12-10 21:13:36 (GMT)
committerDominique CLAUSE2014-12-10 21:13:36 (GMT)
commitb03e282d936fea3779d0fbacd09022889e85756e (patch)
treeed61702d7d1378f809fd9730fe26c4f3eeb14999
parent4bb07dd51ce05fa745d5e12444eb0d389a3ca2d6 (diff)
Issue fixed: callback with absolute URL did not save properly.
-rw-r--r--search_autocomplete.form.configure.inc20
1 files changed, 10 insertions, 10 deletions
diff --git a/search_autocomplete.form.configure.inc b/search_autocomplete.form.configure.inc
index e79caac..bd9fdde 100644
--- a/search_autocomplete.form.configure.inc
+++ b/search_autocomplete.form.configure.inc
@@ -296,16 +296,16 @@ function search_autocomplete_form_configure_submit($form, &$form_state) {
$callback = $values['callback_textfield'];
// Static resource => type = 2.
$data_type = $values['suggestions'];
- if ($data_type == 'callback' && $callback != '') {
- // If path is absolute:
- if (url_is_external($callback)) {
- // If path is internal:
- if (strcmp(substr($callback, 0, strlen($base_url)), $base_url) === 0) {
- // Get it relative.
- $callback = str_replace($base_url . "/", "", $callback);
- }
- }
- }
+// if ($data_type == 'callback' && $callback != '') {
+// // If path is absolute:
+// if (url_is_external($callback)) {
+// // If path is internal:
+// if (strcmp(substr($callback, 0, strlen($base_url)), $base_url) === 0) {
+// // Get it relative.
+// $callback = str_replace($base_url . "/", "", $callback);
+// }
+// }
+// }
// In the case of view, we use a custom callback to retrieve the view data.
if ($data_type == 'view') {
$callback = 'search_autocomplete/autocomplete/' . $values['fid'] . '/';