template.custom-functions.inc 411 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * Implements hook_form_alter().
  4. */
  5. function perfarttimeline_form_alter(&$form, &$form_state, $form_id) {
  6. // dsm($form_id, 'form_id');
  7. if($form_id == 'search_block_form'){
  8. // dsm($form, 'form');
  9. $form['actions']['submit'] = array(
  10. '#type' => 'image_button',
  11. '#src' => drupal_get_path('theme', 'perfarttimeline') . '/images/search.png',
  12. '#value' => t('Search'),
  13. );
  14. }
  15. }