You are here

function hook_ds_layout_settings_info in Display Suite 7.2

Same name and namespace in other branches
  1. 7 ds.api.php \hook_ds_layout_settings_info()

Expose default layout settings info.

This hook is called by CTools. For this hook to work, you need hook_ctools_plugin_api(). The values of this hook can be overridden and reverted through the UI.

1 function implements hook_ds_layout_settings_info()

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

ds_exportables_test_ds_layout_settings_info in tests/ds_exportables_test/ds_exportables_test.module
Implements hook_ds_layout_settings_info().

File

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

Code

function hook_ds_layout_settings_info() {
  $dslayouts = array();
  $dslayout = new stdClass();
  $dslayout->disabled = FALSE;

  /* Edit this to true to make a default dslayout disabled initially */
  $dslayout->api_version = 1;
  $dslayout->id = 'node|article|default';
  $dslayout->entity_type = 'node';
  $dslayout->bundle = 'article';
  $dslayout->view_mode = 'default';
  $dslayout->layout = 'ds_2col';
  $dslayout->settings = array(
    'hide_empty_regions' => 0,
    'regions' => array(
      'left' => array(
        0 => 'title',
        1 => 'node_link',
      ),
      'right' => array(
        0 => 'body',
      ),
    ),
    'fields' => array(
      'title' => 'left',
      'node_link' => 'left',
      'body' => 'right',
    ),
    'classes' => array(),
  );
  $dslayouts['node|article|default'] = $dslayout;
  return $dslayouts;
}