function hook_ds_field_settings_info in Display Suite 7.2
Same name and namespace in other branches
- 7 ds.api.php \hook_ds_field_settings_info()
Expose Display Suite field settings.
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_field_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_field_settings_info in tests/
ds_exportables_test/ ds_exportables_test.module - Implements hook_ds_field_settings_info().
File
- ./
ds.api.php, line 29 - Hooks provided by Display Suite module.
Code
function hook_ds_field_settings_info() {
$dsfieldsettings = array();
$dsfieldsetting = new stdClass();
$dsfieldsetting->disabled = FALSE;
/* Edit this to true to make a default dsfieldsetting disabled initially */
$dsfieldsetting->api_version = 1;
$dsfieldsetting->id = 'node|article|default';
$dsfieldsetting->entity_type = 'node';
$dsfieldsetting->bundle = 'article';
$dsfieldsetting->view_mode = 'default';
$dsfieldsetting->settings = array(
'title' => array(
'weight' => '0',
'label' => 'hidden',
'format' => 'default',
'formatter_settings' => array(
'link' => '1',
'wrapper' => 'h3',
'class' => '',
),
),
'node_link' => array(
'weight' => '1',
'label' => 'hidden',
'format' => 'default',
),
);
$dsfieldsettings['node|article|default'] = $dsfieldsetting;
return $dsfieldsettings;
}