function ctools_string_equal_ctools_access_summary
Provide a summary description based upon the specified context.
1 string reference to 'ctools_string_equal_ctools_access_summary'
- string_equal.inc in plugins/
access/ string_equal.inc
File
-
plugins/
access/ string_equal.inc, line 84
Code
function ctools_string_equal_ctools_access_summary($conf, $context) {
$values = array(
'@identifier' => $context->identifier,
'@value' => $conf['value'],
);
switch ($conf['operator']) {
case '=':
return t('@identifier is "@value"', $values);
case '!=':
return t('@identifier is not "@value"', $values);
case 'regex':
return t('@identifier matches "@value"', $values);
case '!regex':
return t('@identifier does not match "@value"', $values);
}
}