You are here

function context_admin_term_parent_access_settings in Contextual Administration 6

Settings form for the 'by node_type' access plugin

1 string reference to 'context_admin_term_parent_access_settings'
term_parent.inc in plugins/access/term_parent.inc
Plugin to provide access control based upon a term's parent tid.

File

plugins/access/term_parent.inc, line 28
Plugin to provide access control based upon a term's parent tid.

Code

function context_admin_term_parent_access_settings(&$form, &$form_state, $conf) {
  $form['settings']['parent'] = array(
    '#title' => t('Term parent'),
    '#type' => 'textfield',
    '#description' => t('Enter a numeric value for the parent of the term you wish to utilize.  Multiple terms may be comma separated.'),
    '#default_value' => $conf['parent'],
  );
}