You are here

function ctools_context_exists_ctools_access_summary in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 plugins/access/context_exists.inc \ctools_context_exists_ctools_access_summary()

Provide a summary description based upon the specified context

1 string reference to 'ctools_context_exists_ctools_access_summary'
context_exists.inc in plugins/access/context_exists.inc

File

plugins/access/context_exists.inc, line 43

Code

function ctools_context_exists_ctools_access_summary($conf, $context) {
  if (!empty($conf['exists'])) {
    return t('@identifier exists', array(
      '@identifier' => $context->identifier,
    ));
  }
  else {
    return t('@identifier does not exist', array(
      '@identifier' => $context->identifier,
    ));
  }
}