You are here

function _ds_forms_is_entity_type_supported in Display Suite 7.2

Determines if this entity type is supported by ds_forms.

Currently supports all fieldable entity types.

2 calls to _ds_forms_is_entity_type_supported()
ds_forms_form_field_ui_field_overview_form_alter in modules/ds_forms/ds_forms.module
Implements hook_form_FORM_ID_alter().
ds_layout_list in includes/ds.displays.inc
Menu callback: Show the layout list.

File

modules/ds_forms/ds_forms.module, line 235
Display Suite forms integration.

Code

function _ds_forms_is_entity_type_supported($entity_type) {
  $info = entity_get_info($entity_type);
  return !empty($info['fieldable']);
}