You are here

function hook_ds_panels_default_fields in Display Suite 7

Return fields to be added when creating a new display with the panels editor.

1 function implements hook_ds_panels_default_fields()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

ds_extras_ds_panels_default_fields in modules/ds_extras/ds_extras.module
Implements hook_ds_panels_default_fields().
2 invocations of hook_ds_panels_default_fields()
ds_panels_layout in modules/ds_extras/ds_extras.panels.inc
Return the Panels layout settings form.
ds_panels_layout_save in modules/ds_extras/ds_extras.panels.inc
Submit callback: Save a layout.

File

./ds.api.php, line 515
Hooks provided by Display Suite module.

Code

function hook_ds_panels_default_fields($entity_type, $bundle, $view_mode) {

  // Get the fields from Field API.
  $fields = field_info_instances($entity_type, $bundle);
  return $fields;
}