You are here

function flipping_book_settings_form in Flipping Book 7

Flipping Book settings form.

1 string reference to 'flipping_book_settings_form'
flipping_book_menu in ./flipping_book.module
Implements hook_menu().

File

includes/flipping_book.admin.inc, line 11
Flipping Book Admin UI.

Code

function flipping_book_settings_form($form, &$form_state) {
  $options = array(
    'public' => t('Public folder'),
    'private' => t('Private folder'),
  );
  $private = variable_get('file_private_path', '');
  if (empty($private)) {
    unset($options['private']);
  }
  $form['flipping_book_schema'] = array(
    '#title' => t('Import location'),
    '#type' => 'select',
    '#options' => $options,
    '#default_value' => variable_get('flipping_book_schema', 'public'),
    '#required' => TRUE,
    '#description' => t('Choose where you want to import your flipping books.'),
  );
  $form = system_settings_form($form);
  $form['#submit'][] = 'flipping_book_settings_form_submit';
  return $form;
}