function tca_get_token_entity in Token Content Access 7
Gets the Token Content Access token for an entity.
Parameters
string $entity_type: The entity type of the entity.
object $entity: The entity that we're checking.
Return value
string token value for this entity or FALSE if not set
2 calls to tca_get_token_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.
File
- ./
tca.module, line 412 - The Token Content Access module file.
Code
function tca_get_token_entity($entity_type, $entity) {
return isset($entity->tca_token) ? $entity->tca_token : FALSE;
}