File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
profiles/openasu/modules/webspark_featurescustom/asu_gcse Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -66,4 +66,16 @@ function asu_gcse_redirect($query, $type) {
6666 } else {
6767 drupal_set_message(t("Please enter a valid search query."), 'error');
6868 }
69+ }
70+
71+ /**
72+ * Implements hook_process_page
73+ * @param $variables
74+ */
75+ function asu_gcse_process_page(&$variables) {
76+
77+ // Set the 'Search Results' title on search pages
78+ if (arg(0) == 'search') {
79+ $variables['title'] = 'Search Results';
80+ }
6981}
Original file line number Diff line number Diff line change 3333 // Forced a document title, because it doesn't reflect the h1 title (on both search pages)
3434 document . title = "Search Results | " + asu_site_title ;
3535
36- var thetitle = $ ( '#page-title' ) ;
37- // Set page title (h1) to 'Search Results' (on both search pages)
38- thetitle . text ( "Search Results" ) ;
39-
4036 // If the first nav pill URL matches the node_search form ('search/node') then proceed
4137 if ( first_nav_pill_url && first_nav_pill_url . indexOf ( node_search ) != - 1 ) {
4238 // Change 'Content' nav pill label to 'This site'
You can’t perform that action at this time.
0 commit comments