You are here

function _hansel_get_crumb_action_info in Hansel breadcrumbs 8

Same name and namespace in other branches
  1. 7 hansel.module \_hansel_get_crumb_action_info()

Get information line for a breadcrumb action, used for display in admin.

@access private

Parameters

object $rule:

Return value

string

1 call to _hansel_get_crumb_action_info()
_hansel_ui_list_rules in hansel_ui/hansel_ui.module

File

./hansel.module, line 318
Hansel module

Code

function _hansel_get_crumb_action_info($rule) {
  $types = _hansel_get_action_types();
  if (!isset($types[$rule->crumb_action])) {
    return '';
  }
  if (empty($types[$rule->crumb_action]['info'])) {
    return $rule->crumb_action;
  }
  return filter_xss(call_user_func($types[$rule->crumb_action]['info'], $rule->crumb_action_arguments));
}