summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKiraly Peter2013-07-13 13:30:17 (GMT)
committer Kiraly Peter2013-07-13 13:30:17 (GMT)
commitfcd404cb7de3fade3c186904b663f12fb5b349df (patch)
treee81b25d4b7030a4788b32f0a7fda40e6423da3e7
parent966fb62b365e32cc3cdc32f8a69139eab4f92597 (diff)
Display of 'Clear the form' sign.
-rw-r--r--xc_search/xc_search.pages.inc20
1 files changed, 14 insertions, 6 deletions
diff --git a/xc_search/xc_search.pages.inc b/xc_search/xc_search.pages.inc
index 8026cf7..70bdae9 100644
--- a/xc_search/xc_search.pages.inc
+++ b/xc_search/xc_search.pages.inc
@@ -229,11 +229,19 @@ function xc_search_form($form, &$form_state, $action = '', $keys = '', $type = N
}
$method = isset($search_ui->use_post_method) && $search_ui->use_post_method == 0 ? 'GET' : 'POST';
- drupal_add_js(array('xc_search' => array(
- 'search_form_method' => $method,
- 'clean_url' => variable_get('clean_url', FALSE),
- 'clean_action' => 'xc/search',
- )), array('type' => 'setting', 'scope' => JS_DEFAULT));
+ drupal_add_js(
+ array(
+ 'xc_search' => array(
+ 'search_form_method' => $method,
+ 'clean_url' => variable_get('clean_url', FALSE),
+ 'clean_action' => 'xc/search',
+ )
+ ),
+ array(
+ 'type' => 'setting',
+ 'scope' => JS_DEFAULT
+ )
+ );
$form = array(
'#action' => $action,
@@ -262,7 +270,7 @@ function xc_search_form($form, &$form_state, $action = '', $keys = '', $type = N
$form['basic']['clear'] = array(
'#type' => 'item',
- '#value' => l(t('X'), 'xc/search', array(
+ '#markup' => l(t('X'), 'xc/search', array(
'html' => TRUE,
'attributes' => array(
'title' => t('Clear the form'),