You are here

function tca_get_active_entity in Token Content Access 7

Gets the Token Content Access active state for an entity.

Parameters

string $entity_type: The entity type of the entity.

object $entity: The entity that we're checking.

Return value

int TRUE or FALSE depending on whether or not Token Content Access is allowed for this entity

6 calls to tca_get_active_entity()
tca_execute in ./tca.module
Determines the action that should be executed.
tca_form in ./tca.module
Form structure for the Token Content Access configuration.
tca_menu_local_tasks_alter in ./tca.module
Implements hook_menu_local_tasks_alter().
tca_node_node_form_submit in tca_node/tca_node.module
Custom submit function for the node form.
tca_node_node_insert in tca_node/tca_node.module
Implements hook_node_insert().

... See full list

File

./tca.module, line 397
The Token Content Access module file.

Code

function tca_get_active_entity($entity_type, $entity) {
  return isset($entity->tca_active) ? $entity->tca_active : FALSE;
}