You are here

function event_is_enabled in Event 5

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

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

Parameters

$type node type:

Return value

boolean

2 calls to event_is_enabled()
event_block in ./event.module
Provides the blocks that this module is capable of displaying.
event_menu in ./event.module
Implementation of hook_menu()

File

./event.module, line 2140

Code

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