function availability_calendars_menu_callback in Availability Calendars 5
Same name and namespace in other branches
- 6 availability_calendars.module \availability_calendars_menu_callback()
Create tab to show node availability
File
- ./
availability_calendars.module, line 77 - Availability Calendars Module
Code
function availability_calendars_menu_callback() {
$node = node_load(arg(1));
if (availability_calendars_enabled($node->type)) {
return theme('availability_calendars_node', $node);
}
else {
return FALSE;
}
}