function availability_calendars_get_states in Availability Calendars 7.2
Same name and namespace in other branches
- 6.2 availability_calendars.inc \availability_calendars_get_states()
Returns an array of records of all states. Optionally filtered by the is_available flag.
Parameters
boolean|NULL $is_available: Filter on is_available state (boolean) or do not filter at all (NULL (default)).
Return value
array Array of records keyed by the class.
9 calls to availability_calendars_get_states()
- ac_update_copy_states in ac_update/
ac_update.module - ac_update_create_field_instances in ac_update/
ac_update.module - ac_update_remove_split_states in ac_update/
ac_update.module - AvailabilityCalendarsCssGenerator::createStatesCss in ./
availability_calendars.styles.inc - AvailabilityCalendarsStylesFormBuilder::fieldsetStates in ./
availability_calendars.styles.inc - Helper method to return the fieldset for the states styles.
File
- ./
availability_calendars.module, line 264 - Availability Calendars module. Allows for availability information to be displayed using calendars on specified content types.
Code
function availability_calendars_get_states($is_available = NULL) {
module_load_include('inc', 'availability_calendars', 'availability_calendars');
return availability_calendars_get_states_inc($is_available);
}