You are here

function responsive_menu_block_view in Responsive and off-canvas menu 7

Same name and namespace in other branches
  1. 7.3 responsive_menu.module \responsive_menu_block_view()
  2. 7.2 responsive_menu.module \responsive_menu_block_view()

Implements hook_block_view().

File

./responsive_menu.module, line 80

Code

function responsive_menu_block_view($delta = '') {
  $block = array();
  switch ($delta) {
    case 'toggle':
      return array(
        'subject' => '',
        'content' => theme('responsive_menu_block_toggle'),
      );
    case 'horizontal_menu':
      module_load_include('inc', 'responsive_menu', 'includes/responsive_menu.menu');
      return responsive_menu_tree_build(variable_get('responsive_menu_menu', 'main-menu'));
  }
  return $block;
}