Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //template.php
- function BPSTARTER_preprocess_page(&$vars, $hook) {
- global $theme_path;
- $vars['theme_path'] = $theme_path ;
- $vars['main_menu'] = menu_main_menu();
- $vars['search_form'] = render(drupal_get_form('search_box'));
- }
- /**
- * Implementation of HOOK_theme().
- */
- function BPSTARTER_theme(&$existing, $type, $theme, $path) {
- $hooks = blueprint_theme($existing, $type, $theme, $path);
- // Add your theme hooks like this:
- /*
- $hooks['hook_name_here'] = array( // Details go here );
- */
- // @TODO: Needs detailed comments. Patches welcome!
- $hooks['search_box'] = array(
- 'render element' => 'form',
- 'template' => 'templates/search-form');
- return $hooks;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement