function tca_get_active_bundle in Token Content Access 7
Gets the Token Content Access active state for a bundle.
Parameters
string $entity_type: The entity type of the bundle.
string $bundle: The bundle that we're checking.
Return value
bool TRUE or FALSE depending on whether or not Token Content Access is allowed for this bundle
1 call to tca_get_active_bundle()
- tca_form in ./
tca.module - Form structure for the Token Content Access configuration.
File
- ./
tca.module, line 381 - The Token Content Access module file.
Code
function tca_get_active_bundle($entity_type, $bundle) {
return variable_get('tca_' . $entity_type . '_active_' . $bundle, FALSE);
}