function hook_ds_view_modes_info in Display Suite 7
Same name and namespace in other branches
- 7.2 ds.api.php \hook_ds_view_modes_info()
Expose default view modes.
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_view_modes_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_view_modes_info in tests/
ds_exportables_test/ ds_exportables_test.module - Implements hook_ds_view_modes_info().
File
- ./
ds.api.php, line 109 - Hooks provided by Display Suite module.
Code
function hook_ds_view_modes_info() {
$ds_view_modes = array();
$ds_view_mode = new stdClass();
$ds_view_mode->disabled = FALSE;
/* Edit this to true to make a default ds_view_mode disabled initially */
$ds_view_mode->api_version = 1;
$ds_view_mode->view_mode = 'test_exportables';
$ds_view_mode->label = 'Test exportables';
$ds_view_mode->entities = array(
'node' => 'node',
);
$ds_view_modes['test_exportables'] = $ds_view_mode;
return $ds_view_modes;
}