You are here

function rules_organigrams_integration_access in Organigrams 7

Organigrams integration access callback.

Parameters

string $type: Contains an action type.

Return value

bool TRUE if access allowed, otherwise FALSE.

1 string reference to 'rules_organigrams_integration_access'
organigrams_rules_event_info in ./organigrams.rules.inc
Implements hook_rules_event_info().

File

./organigrams.rules.inc, line 157
Rules integration for the organigrams module.

Code

function rules_organigrams_integration_access($type) {
  if ($type == 'event' || $type == 'condition') {
    return entity_access('view', 'organigrams');
  }
}