function hansel_domain_action_add_domain_info in Hansel breadcrumbs 8
Same name and namespace in other branches
- 7 domain/hansel_domain.module \hansel_domain_action_add_domain_info()
Callback for "add domain" action to generate the information line
Parameters
array $arguments Values from the configuration form.:
Return value
string
1 string reference to 'hansel_domain_action_add_domain_info'
- hansel_domain_hansel_action_types in domain/
hansel_domain.module - Implements hook_hansel_action_types().
File
- domain/
hansel_domain.module, line 68 - Hansel domain integration
Code
function hansel_domain_action_add_domain_info($arguments) {
if (empty($arguments['domain_id'])) {
return t('Add current domain');
}
elseif ($domain = domain_load($arguments['domain_id'])) {
return t('Add domain %name', array(
'%name' => $domain['sitename'],
));
}
else {
return t('Add domain (broken)');
}
}