You are here

function epub_admin_settings in Epub 6

Build and return the book settings form.

Return value

The settings form structure.

1 string reference to 'epub_admin_settings'
epub_menu in ./epub.module
Implementation of hook_menu().

File

./epub.admin.inc, line 37
Admin page callbacks for the book module.

Code

function epub_admin_settings() {
  $types = node_get_types('names');
  $form = array();
  $form['epub_custom_chapter_size'] = array(
    '#type' => 'textfield',
    '#size' => 10,
    '#maxlength' => 3,
    '#title' => t('Custom chapter size(in kB)'),
    '#description' => t('Set a custom maximum size for chapters of your ePubs. Keep in mind that the maximum allowed is 250kB.'),
    '#required' => TRUE,
    '#element_validate' => array(
      '_element_epub_custom_chapter_size_validate',
    ),
    '#default_value' => variable_get('epub_custom_chapter_size', 250),
  );
  return system_settings_form($form);
}