function footermap_block in footermap: a footer site map 5.2
Same name and namespace in other branches
- 6 footermap.module \footermap_block()
Implementation of hook_block
File
- ./
footermap.module, line 135 - This module queries the menu for pages and makes a dynamic sitemap at the bottom of the page.
Code
function footermap_block($op = 'list', $delta = 0, $edit = array()) {
if ($op == 'list') {
$blocks = array();
$blocks[] = array(
'info' => t('Footermap'),
'weight' => 0,
'status' => 1,
'region' => 'footer',
);
return $blocks;
}
else {
if ($op == 'view') {
switch ($delta) {
case 0:
$block = array(
'subject' => t(''),
'content' => _footermap_render(),
);
break;
}
return $block;
}
}
}