You are here

function appointment_calendar_block_info_alter in Appointment Calendar 7

Implements hook_block_info_alter().

File

./appointment_calendar.module, line 373
Adds Appointment calendar filtering and displays Availability.

Code

function appointment_calendar_block_info_alter(&$blocks, $theme, $code_blocks) {

  // To set block in region and display in page.
  if (isset($blocks['views']['appointment_calendar-block'])) {
    $blocks['views']['appointment_calendar-block']['status'] = 1;
    $blocks['views']['appointment_calendar-block']['region'] = 'content';
    $blocks['views']['appointment_calendar-block']['weight'] = 2;
    $blocks['views']['appointment_calendar-block']['visibility'] = BLOCK_VISIBILITY_LISTED;
    $blocks['views']['appointment_calendar-block']['pages'] = 'appointcal';
  }
}