function entity_view_mode_exists in Entity view modes 7
1 string reference to 'entity_view_mode_exists'
- entity_view_mode_edit_form in ./
entity_view_mode.admin.inc - Form builder; edit a custom view mode.
File
- ./
entity_view_mode.admin.inc, line 163
Code
function entity_view_mode_exists($machine_name, $element, $form_state) {
$entity_info = entity_get_info($element['#entity_type']);
return !empty($entity_info['view modes'][$machine_name]);
}