function entity_background_has_background_field in Entity background 7
Has the entity background field.
Parameters
$entity: An entity object which background should be loaded.
Return value
boolean TRUE if the background field is present on the entity, FALSE otherwise.
1 call to entity_background_has_background_field()
- entity_background_get_background_plugin_function in ./
entity_background.module - Get the specified background plugin function if it exist.
File
- ./
entity_background.module, line 107 - Module file entity background.
Code
function entity_background_has_background_field($entity) {
return !empty($entity->{EB_FIELD});
}