function nr_owners_form_node_registration_type_settings_alter in Node registration 7
Implements hook_form_FORM_ID_alter() for node_registration_type_settings().
File
- submodules/
nr_owners/ nr_owners.module, line 27
Code
function nr_owners_form_node_registration_type_settings_alter(&$form, &$form_state) {
$registration_type = $form['#registration_type'];
$type = $registration_type->type;
$settings = _node_registration_node_type_settings($type);
$form['events']['extra_nr_owners_no_settings_tab'] = array(
'#type' => 'checkbox',
'#title' => t('Disable settings tab on node page'),
'#default_value' => !empty($settings->extra_nr_owners_no_settings_tab),
'#description' => t('Access denies the settings tab for all people without Administer registration permission.'),
);
}