function menu_block_block in Menu Block 5.2
Same name and namespace in other branches
- 5 menu_block.module \menu_block_block()
- 6.2 menu_block.module \menu_block_block()
Implements hook_block().
File
- ./
menu_block.module, line 107 - 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.
include_once './' . drupal_get_path('module', 'menu_block') . '/menu_block.admin.inc';
if (function_exists($function)) {
return $function($delta, $edit);
}
}
}