function availability_calendars_block in Availability Calendars 6.2
Same name and namespace in other branches
- 6 availability_calendars.module \availability_calendars_block()
Implements D6 hook_block(): forward to D7 hook_block_$op(). Generates a block for the legend that can be shown when on availability calendar nodes.
See also
http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hoo...
File
- ./
availability_calendars.module, line 227 - Availability Calendars module. Allows for availability information to be displayed using calendars on specified content types.
Code
function availability_calendars_block($op = 'list', $delta = 0, $edit = array()) {
// The $op parameter determines what piece of information is being requested.
switch ($op) {
case 'list':
return availability_calendars_block_info();
case 'view':
return availability_calendars_block_view($delta);
}
}