function domain_field_extra_fields in Domain Access 7.3
Same name and namespace in other branches
- 7.2 domain.module \domain_field_extra_fields()
Implements hook_field_extra_fields()
Field hook to allow sorting of the domain settings field.
File
- ./
domain.module, line 3400 - Core module functions for the Domain Access suite.
Code
function domain_field_extra_fields() {
$base = array(
'domain' => array(
'label' => t('Domain access'),
'description' => t('Domain Access settings.'),
'weight' => 1,
),
);
$base_display = $base;
$base_display['domain']['label'] .= ' ' . t('(debugging only)');
// Node settings.
$extra = array();
foreach (node_type_get_names() as $name => $value) {
$extra['node'][$name]['form'] = $base;
$extra['node'][$name]['display'] = $base_display;
}
// User settings.
$extra['user']['user']['form'] = $base;
$extra['user']['user']['display'] = $base_display;
return $extra;
}