book_toc

  1. drupal
    1. drupal6
    2. drupal7
Versionen
drupal6 book_toc($bid, $exclude = array(), $depth_limit)
drupal7 book_toc($bid, $depth_limit, $exclude = array())

Returns an array of book pages in table of contents order.

Übergabeparameter

$bid The ID of the book whose pages are to be listed.

$exclude Optional array of mlid values. Any link whose mlid is in this array will be excluded (along with its children).

$depth_limit Any link deeper than this value will be excluded (along with its children).

Rückgabewert

An array of mlid, title pairs for use as options for selecting a book page.

▾ 1 function calls book_toc()

_book_parent_select in modules/book/book.module
Build the parent selection form element for the node form or outline tab

Code

modules/book/book.module, line 863

<?php
function book_toc($bid, $exclude = array(), $depth_limit) {

  $tree = menu_tree_all_data(book_menu_name($bid));
  $toc = array();
  _book_toc_recurse($tree, '', $toc, $exclude, $depth_limit);

  return $toc;
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen