function ctools_term_parent_settings_form

Settings form for the relationship.

1 string reference to 'ctools_term_parent_settings_form'
term_parent.inc in plugins/relationships/term_parent.inc
Plugin to provide an relationship handler for term parent.

File

plugins/relationships/term_parent.inc, line 57

Code

function ctools_term_parent_settings_form($form, &$form_state) {
    $conf = $form_state['conf'];
    $form['type'] = array(
        '#type' => 'select',
        '#title' => t('Relationship type'),
        '#options' => array(
            'parent' => t('Immediate parent'),
            'top' => t('Top level term'),
        ),
        '#default_value' => $conf['type'],
    );
    return $form;
}