You are here

function availability_calendars_block in Availability Calendars 6

Same name and namespace in other branches
  1. 6.2 availability_calendars.module \availability_calendars_block()

Implementation of hook_block(). Generates block for the legend to be shown in when on availability calendar nodes

Parameters

string $op:

int $delta:

array $edit:

Return value

array

File

./availability_calendars.module, line 846
Availability Calendars Module.

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':
      $blocks['key']['info'] = t('Availability Calendar Key');
      return $blocks;
    case 'configure':
      break;
    case 'save':
      break;
    case 'view':
      switch ($delta) {
        case 'key':
          $block['subject'] = t('Availability Key');
          $block['content'] = availability_calendars_key();
          break;
      }
      return $block;
  }
}