1 book.module book_block_configure($delta = '', $settings = array())

Implements hook_block_configure().


core/modules/book/book.module, line 317
Allows users to create and organize related content in an outline.


function book_block_configure($delta = '', $settings = array()) {
  $settings += array(
    'book_mode' => 'all pages',
  $options = array(
    'all pages' => t('Show block on all pages'),
    'book pages' => t('Show block only on book pages'),
  $form['book_mode'] = array(
    '#type' => 'radios',
    '#title' => t('Book navigation block display'),
    '#options' => $options,
    '#default_value' => $settings['book_mode'],
    '#description' => t("If <em>Show block on all pages</em> is selected, the block will contain the automatically generated menus for all of the site's books. If <em>Show block only on book pages</em> is selected, the block will contain only the one menu corresponding to the current page's book. In this case, if the current page is not in a book, no block will be displayed. The <em>Page specific visibility settings</em> or other visibility settings can be used in addition to selectively display this block."),

  return $form;