You are here

function example_book_toc in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_upgrade/tests/old/samples/example.module \example_book_toc()

File

coder_upgrade/tests/old/samples/example.module, line 2621

Code

function example_book_toc() {
  $toc = book_toc($bid, array(), 9);
  $toc = book_toc($bid, array(
    'item',
  ), 9);
  $form = array(
    '#type' => 'select',
    '#title' => t('Parent item'),
    '#default_value' => $book_link['plid'],
    '#description' => t('The parent page in the book. The maximum depth for a book and all child pages is !maxdepth. Some pages in the selected book may not be available as parents if selecting them would exceed this limit.', array(
      '!maxdepth' => MENU_MAX_DEPTH,
    )),
    '#options' => book_toc($book_link['bid'], array(
      $book_link['mlid'],
    ), $book_link['parent_depth_limit']),
    '#attributes' => array(
      'class' => array(
        'book-title-select',
      ),
    ),
  );
}