You are here

function panels_optional_context::add_empty in Panels 6.2

Same name and namespace in other branches
  1. 5.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 116
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);
}