function views_ui_contextual_links_suppress_push

views_ui_contextual_links_suppress_push()

Increments the views_ui_contextual_links_suppress() static variable.

When this function is added to the #pre_render of an element, and 'views_ui_contextual_links_suppress_pop' is added to the #post_render of the same element, then all contextual links within the element and its descendants are suppressed from being rendered. This is used, for example, during a View preview, when it is not desired for nodes in the Views result to have contextual links.

See also

views_ui_contextual_links_suppress_pop()

File

core/modules/views_ui/views_ui.module, line 272
Provide structure for the administrative interface to Views.

Code

function views_ui_contextual_links_suppress_push() {
  views_ui_contextual_links_suppress(((int) views_ui_contextual_links_suppress()) + 1);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!views_ui!views_ui.module/function/views_ui_contextual_links_suppress_push/8.1.x