function nodeaccess_userreference_admin_settings in Node access user reference 7.2
Same name and namespace in other branches
- 5.2 nodeaccess_userreference.module \nodeaccess_userreference_admin_settings()
- 5 nodeaccess_userreference.module \nodeaccess_userreference_admin_settings()
- 6 nodeaccess_userreference.module \nodeaccess_userreference_admin_settings()
- 6.2 nodeaccess_userreference.module \nodeaccess_userreference_admin_settings()
System settings form for Node access user reference.
1 string reference to 'nodeaccess_userreference_admin_settings'
- nodeaccess_userreference_menu in ./
nodeaccess_userreference.module - Implements hook_menu().
File
- ./
nodeaccess_userreference.module, line 29 - The Node access user reference module.
Code
function nodeaccess_userreference_admin_settings($form, &$form_state) {
$form['nodeaccess_userreference_priority'] = array(
'#type' => 'weight',
'#title' => t('Set node grants priority for Node access user reference'),
'#default_value' => variable_get('nodeaccess_userreference_priority', 0),
'#description' => t('If you are only using this access control module, you can safely ignore this.
If you are using multiple access control modules you can adjust the priority of this module.'),
);
$form['nodeaccess_userreference_author_view'] = array(
'#type' => 'checkbox',
'#title' => t('Grant <em>view</em> access to node authors'),
'#default_value' => variable_get('nodeaccess_userreference_author_view', 1),
'#description' => t('Grants <em>view</em> access to authors. Use this if not using other node access modules to set author access.'),
);
$form['nodeaccess_userreference_author_update'] = array(
'#type' => 'checkbox',
'#title' => t('Grant <em>edit</em> access to node authors'),
'#default_value' => variable_get('nodeaccess_userreference_author_update', 1),
'#description' => t('Grants <em>edit</em> access to authors. Use this if not using other node access modules to set author access.'),
);
$form['nodeaccess_userreference_author_delete'] = array(
'#type' => 'checkbox',
'#title' => t('Grant <em>delete</em> access to node authors'),
'#default_value' => variable_get('nodeaccess_userreference_author_delete', 1),
'#description' => t('Grants <em>delete</em> access to authors. Use this if not using other node access modules to set author access.'),
);
// Add additional submit processing.
$form['#submit'][] = 'nodeaccess_userreference_admin_settings_submit';
return system_settings_form($form);
}