function _hansel_get_switch_info in Hansel breadcrumbs 7
Same name and namespace in other branches
- 8 hansel.module \_hansel_get_switch_info()
Get switch information line, used for display in admin.
@access private
Parameters
object $rule:
Return value
string
1 call to _hansel_get_switch_info()
- _hansel_ui_list_rules in hansel_ui/
hansel_ui.module
File
- ./
hansel.module, line 300 - Hansel module
Code
function _hansel_get_switch_info($rule) {
$types = _hansel_get_switch_types();
if (!isset($types[$rule->handler])) {
return '';
}
if (empty($types[$rule->handler]['info'])) {
return '';
}
return call_user_func($types[$rule->handler]['info'], $rule->arguments);
}