Drupal 6 Overide Form search_box

webadmin's picture
Drupal

Simply want the ability to remove the default text "Search this site: " from the $search_box variable when theming in Drupal 6, i want to change as well as possibly the submit button's text from "Search" to "Go!" or something like that...

Put this code on template.tpl.php

function search_theme() {
return array(
'search_theme_form' => array(
'arguments' => array('form' => NULL),
'template' => 'search-theme-form',
),
'search_block_form' => array(
'arguments' => array('form' => NULL),
'template' => 'search-block-form',
),
'search_result' => array(
'arguments' => array('result' => NULL, 'type' => NULL),
'file' => 'search.pages.inc',
'template' => 'search-result',
),
'search_results' => array(
'arguments' => array('results' => NULL, 'type' => NULL),
'file' => 'search.pages.inc',
'template' => 'search-results',
),
);
}

Baca Juga

14 years 5 months ago
12 years 5 months ago
14 years 5 months ago