You are here

function availability_calendars_enabled in Availability Calendars 5

Checks if availability is enabled for specified content type.

Parameters

string $node_type:

3 calls to availability_calendars_enabled()
availability_calendars_form_alter in ./availability_calendars.module
Implementation of hook_form_alter();
availability_calendars_menu_callback in ./availability_calendars.module
Create tab to show node availability
availability_calendars_nodeapi in ./availability_calendars.module
Implementation hook node_nodeapi();

File

./availability_calendars.module, line 508
Availability Calendars Module

Code

function availability_calendars_enabled($node_type) {
  return variable_get('availability_calendars_' . $node_type, 0);
}