You are here

function ds_extras_get_view_mode in Display Suite 7

Same name and namespace in other branches
  1. 7.2 modules/ds_extras/ds_extras.module \ds_extras_get_view_mode()

Utility funtion to return the view mode for the current entity.

The drupal_static is called in ds_extras_node_show to set the current view mode. Through this technique, the hide page title functionality can also work across other view modes if another one is chosen for the full page of the node.

1 call to ds_extras_get_view_mode()
ds_extras_entity_view_alter in modules/ds_extras/ds_extras.module
Implements hook_entity_view_alter().

File

modules/ds_extras/ds_extras.module, line 515
Display Suite extras main functions.

Code

function ds_extras_get_view_mode() {
  return drupal_static('ds_extras_view_mode');
}