function ctools_node_access_ctools_access_settings

Settings form for the 'by node_access' access plugin.

1 string reference to 'ctools_node_access_ctools_access_settings'
node_access.inc in plugins/access/node_access.inc
Plugin to provide access control based upon node type.

File

plugins/access/node_access.inc, line 29

Code

function ctools_node_access_ctools_access_settings($form, &$form_state, $conf) {
    $form['settings']['type'] = array(
        '#title' => t('Operation'),
        '#type' => 'radios',
        '#options' => array(
            'view' => t('View'),
            'update' => t('Update'),
            'delete' => t('Delete'),
            'create' => t('Create nodes of the same type'),
        ),
        '#description' => t('Using built in Drupal node access rules, determine if the user can perform the selected operation on the node.'),
        '#default_value' => $conf['type'],
    );
    return $form;
}