function fc_entity_is_enabled in Field Complete 7
Returns TRUE if the given entity is enabled with fc, FALSE otherwise.
8 calls to fc_entity_is_enabled()
- fc_conditional_fc_instances_alter in fc_conditional/
fc_conditional.module - Implements hook_fc_instances_alter().
- fc_entity_delete in ./
fc.module - Implements hook_entity_delete().
- fc_entity_insert in ./
fc.module - Implements hook_entity_insert().
- fc_entity_load in ./
fc.module - Implements hook_entity_load().
- fc_entity_update in ./
fc.module - Implements hook_entity_update().
File
- ./
fc.module, line 443 - Field Complete - Provides field-based completeness for any entity.
Code
function fc_entity_is_enabled($entity_type) {
if (!empty($entity_type) && is_string($entity_type)) {
$types = fc_enabled_entity_types();
return in_array($entity_type, $types, true);
}
return FALSE;
}