You are here

function calendar_block_view in Calendar 7

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

implementation of hook_block_view()

1 string reference to 'calendar_block_view'
calendar_uninstall in ./calendar.install
Implementation of hook_uninstall(). Remove all traces of calendars.

File

./calendar.module, line 151
Adds calendar filtering and displays to Views.

Code

function calendar_block_view($delta = 0) {
  switch ($delta) {
    case 0:
      $block['subject'] = t('Calendar Legend');
      $content = theme('calendar_stripe_legend');
      $block['content'] = !empty($content) ? '<div class="calendar legend">' . $content . '</div>' : '';
      return $block;
  }
}