You are here

function menu_block_block in Menu Block 6.2

Same name and namespace in other branches
  1. 5.2 menu_block.module \menu_block_block()
  2. 5 menu_block.module \menu_block_block()

Implements hook_block().

File

./menu_block.module, line 149
Provides configurable blocks of menu items.

Code

function menu_block_block($op = 'list', $delta = NULL, $edit = NULL) {
  $function = '_menu_block_block_' . $op;
  if (function_exists($function)) {
    return $function($delta, $edit);
  }
  else {

    // "op"s besides "view" are seldom used, so we store them in a separate file.
    module_load_include('inc', 'menu_block', 'menu_block.admin');
    if (function_exists($function)) {
      return $function($delta, $edit);
    }
  }
}