You are here

function footermap_block in footermap: a footer site map 6

Same name and namespace in other branches
  1. 5.2 footermap.module \footermap_block()

File

./footermap.module, line 167

Code

function footermap_block($op = 'list', $delta = 0, $edit = array()) {
  if ($op == 'list') {
    $blocks = array();
    $blocks[] = array(
      'info' => t('Footermap block'),
      'weight' => 5,
      'status' => 1,
      'region' => 'footer',
    );
    return $blocks;
  }
  else {
    if ($op == 'view') {
      drupal_add_css(drupal_get_path('module', 'footermap') . '/footermap.css', 'module', 'all', TRUE);
      $block = array(
        'subject' => t(''),
        'content' => _footermap_render(),
      );
      return $block;
    }
  }
}