function hansel_switch_node_age_info in Hansel breadcrumbs 7
Same name and namespace in other branches
- 8 hansel.switches.inc \hansel_switch_node_age_info()
 
Callback for "node age" switch to generate the information line.
Parameters
array $arguments:
Return value
string
1 string reference to 'hansel_switch_node_age_info'
- hansel_hansel_switch_types in ./
hansel.module  - Implements hook_hansel_switch_types().
 
File
- ./
hansel.switches.inc, line 161  - Hansel switches
 
Code
function hansel_switch_node_age_info($arguments) {
  $unit = empty($arguments['unit']) ? 86400 : $arguments['unit'];
  return t('with units of %interval', array(
    '%interval' => format_interval($unit),
  ));
}