You are here

function panels_optional_context::add_empty in Panels 5.2

Same name and namespace in other branches
  1. 6.2 includes/plugins.inc \panels_optional_context::add_empty()

Add the 'empty' context which is possible for optional

2 calls to panels_optional_context::add_empty()
panels_optional_context::filter in includes/plugins.inc
panels_optional_context::select in includes/plugins.inc

File

includes/plugins.inc, line 108
plugins.inc

Class

panels_optional_context

Code

function add_empty(&$contexts) {
  $context = new panels_context('any');
  $context->title = t('No context');
  $context->identifier = t('No context');
  $contexts = array_merge(array(
    'empty' => $context,
  ), $contexts);
}