/** * Implements hook_preprocess_page(). */ function mytheme_preprocess_page(&$variables) { // Add CSS file to page. drupal_add_css(drupal_get_path('theme', 'mytheme') . '/css/custom.css'); }
/** * Implements hook_form_alter(). */ function mytheme_form_alter(&$form, &$form_state, $form_id) { if ($form_id == 'search_block_form') { $form['#title'] = t('Search This Site'); } }
/** * Implements hook_menu_link(). */ function mytheme_menu_link(array $variables) { $element = $variables['element']; $sub_menu = ''; if ($element['#below']) { $sub_menu = drupal_render($element['#below']); } $output = l($element['#title'], $element['#href'], $element['#localized_options']); return ' ' . $output . $sub_menu . ' '; }Package library: Drupal Core and contributed modules.