function availability_calendar_block_view in Availability Calendars 7.4
Same name and namespace in other branches
- 7.5 availability_calendar.module \availability_calendar_block_view()
- 7.3 availability_calendar.module \availability_calendar_block_view()
Implements hook_block_view(). @link http://api.drupal.org/api/drupal/modules--block--block.api.php/function/...
File
- ./
availability_calendar.module, line 302
Code
function availability_calendar_block_view($delta = '') {
$block = array();
if ($delta == 'key') {
$block['subject'] = t('Availability Key');
$block['content'] = array(
'#theme' => 'availability_calendar_key',
'#states_to_show' => variable_get('availability_calendar_block_states_to_show', array()),
);
}
return $block;
}