function theme_availability_calendar in Availability Calendars 7.3
Same name and namespace in other branches
- 7.5 availability_calendar.theme.inc \theme_availability_calendar()
- 7.4 availability_calendar.theme.inc \theme_availability_calendar()
Themes the availability calendar field.
Parameters
array $variables:
Return value
string
File
- ./
availability_calendar.theme.inc, line 22
Code
function theme_availability_calendar($variables) {
availability_calendar_add_full_calendar_js($variables['cid'], $variables['name'], $variables['settings'], $variables['mode']);
$output = '<div id="cal-' . $variables['cid'] . '" class="cal clearfix">' . "\n";
if (!empty($variables['name'])) {
$output .= '<div class="field-label">' . $variables['name'] . ': </div>' . "\n";
}
$output .= theme('availability_calendar_months', $variables);
$output .= "</div>\n";
return $output;
}