function entity_type_is_fieldable in Entity API 7
Checks whether an entity type is fieldable.
Parameters
$entity_type: The type of the entity.
Return value
bool TRUE if the entity type is fieldable, FALSE otherwise.
3 calls to entity_type_is_fieldable()
- EntityAPIController::invoke in includes/
entity.controller.inc - Implements EntityAPIControllerInterface.
- EntityDefaultUIController::operationCount in includes/
entity.ui.inc - Returns the operation count for calculating colspans.
- EntityDefaultUIController::overviewTableRow in includes/
entity.ui.inc - Generates the row for the passed entity and may be overridden in order to customize the rows.
File
- ./
entity.module, line 538
Code
function entity_type_is_fieldable($entity_type) {
$info = entity_get_info($entity_type);
return !empty($info['fieldable']);
}