function auto_entitylabel_entity_label_visible in Automatic Entity Label 7
Check if given entity bundle has a visible label on the entity form.
@todo Find a generic way of determining the result of this function. This will probably require access to more information about entity forms (entity api module?).
Parameters
string $entity_type: The entity type.
string $bundle_name: The name of the bundle.
Return value
hidden[entity_type] TRUE if the label is rendered in the entity form, FALSE otherwise.
1 call to auto_entitylabel_entity_label_visible()
- _auto_entitylabel_options in ./
auto_entitylabel.admin.inc - Constructs the list of options for the given bundle.
File
- ./
auto_entitylabel.admin.inc, line 175 - Contains administration forms.
Code
function auto_entitylabel_entity_label_visible($entity_type, $bundle_name) {
$hidden = array(
'profile2' => TRUE,
);
return empty($hidden[$entity_type]);
}