You are here

function mmenu_block_view in Mobile sliding menu 7.3

Same name and namespace in other branches
  1. 7 mmenu.module \mmenu_block_view()
  2. 7.2 mmenu.module \mmenu_block_view()

Implements hook_block_view().

File

./mmenu.module, line 602
Primarily Drupal hooks and global API functions to manipulate mmenus.

Code

function mmenu_block_view($delta = '') {
  $block = array();
  switch ($delta) {
    case 'search':
      $block['subject'] = t('Search');
      $block['content'] = '';
      if (module_exists('search')) {
        $search_form = drupal_get_form('search_form');
        $block['content'] = drupal_render($search_form);
      }
      break;
  }
  return $block;
}