You are here

function ctools_book_parent_settings_form in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 plugins/relationships/book_parent.inc \ctools_book_parent_settings_form()

Settings form for the relationship.

1 string reference to 'ctools_book_parent_settings_form'
book_parent.inc in plugins/relationships/book_parent.inc
Plugin to provide an relationship handler for book parent.

File

plugins/relationships/book_parent.inc, line 58
Plugin to provide an relationship handler for book parent.

Code

function ctools_book_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 book'),
    ),
    '#default_value' => $conf['type'],
  );
  return $form;
}