You are here

function ds_get_entity_context in Display Suite 7.2

Same name and namespace in other branches
  1. 7 ds.field_ui.inc \ds_get_entity_context()

Add entity contexts.

2 calls to ds_get_entity_context()
ds_ctools_content in includes/ds.field_ui.inc
Return the configuration settings for the CTools field.
_ds_extras_page_title_options in modules/ds_extras/includes/ds_extras.admin.inc
Helper function to show the page title options.

File

includes/ds.field_ui.inc, line 1318
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);
}