You are here

function hook_ds_vd_info in Display Suite 7.2

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

Expose Views layouts definitions.

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_vd_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_vd_info in tests/ds_exportables_test/ds_exportables_test.module
Implements hook_ds_vd_info().

File

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

Code

function hook_ds_vd_info() {
  $ds_vds = array();
  $ds_vd = new stdClass();
  $ds_vd->api_version = 1;
  $ds_vd->vd = 'frontpage-page';
  $ds_vd->label = 'Frontpage: Views displays';
  $ds_vds['frontpage-page'] = $ds_vd;
  return $ds_vds;
}