diff --git a/xc_search/xc_search.pages.inc b/xc_search/xc_search.pages.inc index 8026cf765971bf6aec7db4a42c66fc885a1fdcf4..70bdae9b80a8062b955cc3471b6deaa4d8edf90d 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'),