function ds_get_entity_context in Display Suite 7
Same name and namespace in other branches
- 7.2 includes/ds.field_ui.inc \ds_get_entity_context()
Add entity contexts.
5 calls to ds_get_entity_context()
- ds_ctools_content in ./
ds.field_ui.inc - Return the configuration settings for the CTools field.
- ds_panels_content in modules/
ds_extras/ ds_extras.panels.inc - Return the panels content manager.
- ds_panels_field_ui in modules/
ds_extras/ ds_extras.panels.inc - Manage display screen with panels editor.
- ds_panels_layout_save in modules/
ds_extras/ ds_extras.panels.inc - Submit callback: Save a layout.
- _ds_extras_page_title_options in modules/
ds_extras/ ds_extras.admin.inc - Helper function to show the page title options. Used in Field UI and Panels editor.
File
- ./
ds.field_ui.inc, line 936 - Field UI functions for Display Suite.
Code
function ds_get_entity_context($entity_type) {
ctools_include('context');
$arguments = array(
array(
'keyword' => $entity_type,
'identifier' => drupal_ucfirst($entity_type) . ' being viewed',
'id' => 1,
'name' => 'entity_id:' . $entity_type,
'settings' => array(),
),
);
return ctools_context_get_placeholders_from_argument($arguments);
}