Timeline for Search box label
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 31, 2016 at 5:10 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
added a missing parenthesis
|
May 31, 2016 at 4:57 | vote | accept | ConFused | ||
May 31, 2016 at 4:52 | comment | added | ConFused |
Thank you, thank you! I ended up modifying it a bit, and placing brackets after each statement, but this help me do much! function sample_theme_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'search_block_form') { $form['actions']['submit']['#value'] = t('GO!'); } elseif ($form_id == 'search_form') { $form['basic']['submit']['#value'] = t('GO!'); if (isset($form['advanced']['submit'])) { $form['advanced']['submit']['#value'] = t('GO!'); } } } Any future readers, this code was placed in template.php.
|
|
May 30, 2016 at 7:07 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
added the code
|
May 30, 2016 at 5:52 | history | answered | avpaderno♦ | CC BY-SA 3.0 |