You are here

function ctools_plugin_example_arg_length_ctools_access_summary in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 ctools_plugin_example/plugins/access/arg_length.inc \ctools_plugin_example_arg_length_ctools_access_summary()

Provide a summary description based upon the checked roles.

1 string reference to 'ctools_plugin_example_arg_length_ctools_access_summary'
arg_length.inc in ctools_plugin_example/plugins/access/arg_length.inc
Plugin to provide access control/visibility based on length of simplecontext argument (in URL).

File

ctools_plugin_example/plugins/access/arg_length.inc, line 60
Plugin to provide access control/visibility based on length of simplecontext argument (in URL).

Code

function ctools_plugin_example_arg_length_ctools_access_summary($conf, $context) {
  return t('Simpletext argument must be !comp @length characters', array(
    '!comp' => $conf['greater_than'] ? 'greater than' : 'less than or equal to',
    '@length' => $conf['arg_length'],
  ));
}