You are here

function event_is_enabled in Event 5.2

Same name and namespace in other branches
  1. 5 event.module \event_is_enabled()

Find out if a node type is shown in all calendars.

Parameters

$type node type:

Return value

boolean

1 call to event_is_enabled()
event_menu in ./event.module
Implementation of hook_menu()

File

./event.module, line 2388

Code

function event_is_enabled($type) {
  $states = event_get_types();
  return in_array($type, $states['all']);
}