1 book.module | book_block_configure($delta = '', $settings = array()) |
Implements hook_block_configure().
File
- core/
modules/ book/ book.module, line 319 - Allows users to create and organize related content in an outline.
Code
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'],
);
$form['book_mode']['all pages']['#description'] = t("The block will contain the automatically generated menus for all of the site's books.");
$form['book_mode']['book pages']['#description'] = t("The block will contain only the one menu corresponding to the current page's book. If the current page is not in a book, no block will be displayed.");
return $form;
}