function hansel_og_action_add_og_path_info in Hansel breadcrumbs 8
Same name and namespace in other branches
- 7 og/hansel_og.module \hansel_og_action_add_og_path_info()
Callback for "add og path" action to generate the information line
Parameters
array $arguments Values from the configuration form.:
Return value
string
1 string reference to 'hansel_og_action_add_og_path_info'
- hansel_og_hansel_action_types in og/
hansel_og.module - Implements hook_hansel_action_types().
File
- og/
hansel_og.module, line 60 - Hansel organic groups integration
Code
function hansel_og_action_add_og_path_info($arguments) {
if (empty($arguments['group'])) {
return t('No group selected.');
}
else {
$groups = array();
foreach ($arguments['group'] as $group) {
if (!empty($group)) {
$groups[] = drupal_ucfirst($group);
}
}
$groups = implode(', ', $groups);
return t('Add og path for following groups: %groups', array(
'%groups' => $groups,
));
}
}