You are here

function ds_build_load in Display Suite 7.2

Same name and namespace in other branches
  1. 7 modules/ds_forms/ds_forms.module \ds_build_load()

Helper function to determine if this form can be loaded.

3 calls to ds_build_load()
ds_forms_field_widget_field_collection_embed_form_alter in modules/ds_forms/ds_forms.module
Implements hook_field_widget_WIDGET_TYPE_form_alter().
ds_forms_form_alter in modules/ds_forms/ds_forms.module
Implements hook_form_alter().
ds_forms_preprocess_ds_forms_custom_form in modules/ds_forms/ds_forms.module
Implements hook_preprocess_ds_forms_custom_form().

File

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

Code

function ds_build_load($form, $form_id) {
  $ds_form = FALSE;
  if (isset($form['#entity_type']) && isset($form['#bundle']) && $form_id != 'field_ui_field_overview_form' && $form_id != 'field_ui_display_overview_form' && $form_id != 'field_ui_field_settings_form' && $form_id != 'field_ui_widget_type_form' && $form_id != 'field_ui_field_edit_form' && !preg_match('/^editablefields_form_/', $form_id)) {
    $ds_form = new stdClass();
    $ds_form->entity_type = $form['#entity_type'];
    $ds_form->bundle = $form['#bundle'];
  }
  return $ds_form;
}