You are here

function availability_calendar_add_full_calendar_js in Availability Calendars 7.4

Same name and namespace in other branches
  1. 7.5 availability_calendar.theme.inc \availability_calendar_add_full_calendar_js()
  2. 7.3 availability_calendar.theme.inc \availability_calendar_add_full_calendar_js()

Adds the necessary javascript for a full calendar if it is interactive (full in the sense of not placed in a viewport).

When theming the widget (the user is going to edit the calendar), it should always be interactive ('selectable' will not be set in this case).

Parameters

array $variables: Array with arguments passed to the theme.

2 calls to availability_calendar_add_full_calendar_js()
theme_availability_calendar in ./availability_calendar.theme.inc
Themes the availability calendar field.
theme_availability_calendar_colorbox in ./availability_calendar.theme.inc
Themes the availability calendar field.

File

./availability_calendar.theme.inc, line 426

Code

function availability_calendar_add_full_calendar_js($variables) {
  if (!isset($variables['settings']['selectable']) || $variables['settings']['selectable']) {
    availability_calendar_add_calendar_view_js($variables['cvid'], $variables['cid'], $variables['name'], $variables['settings']);
  }
}