Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Germán Guaigua guaigua

🏠
Working from home
View GitHub Profile
@gongo
gongo / dbd-oracle-install-on-ubuntu1204.org
Created Aug 15, 2012
Install document of DBD::Oracle on Ubuntu 12.04
View dbd-oracle-install-on-ubuntu1204.org
@mattfarina
mattfarina / gist:751854
Created Dec 22, 2010
Make Drupal 7 search button an image button.
View gist:751854
/**
* Implements hook_form_alter().
*
* Courtesy of JohnAlbin
*/
function THEMENAME_form_search_block_form_alter(&$form, &$form_state) {
$form['actions']['submit']['#type'] = 'image_button';
$form['actions']['submit']['#src'] = drupal_get_path('theme', 'THEMENAME') . '/images/button-search.png';
}