/[drupal]/contributions/modules/menu_block/menu_block.book.inc
ViewVC logotype

Contents of /contributions/modules/menu_block/menu_block.book.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Sat Nov 29 18:17:55 2008 UTC (11 months, 4 weeks ago) by johnalbin
Branch: MAIN
CVS Tags: DRUPAL-6--2-2, DRUPAL-6--2-1, HEAD
File MIME type: text/x-php
#330978: Add hook_get_menus() and implement Book module integration
1 <?php
2 // $Id$
3
4 /**
5 * @file
6 * Provides book integration.
7 */
8
9 /**
10 * Returns a list of book menus.
11 *
12 * @return
13 * array The list of book menus.
14 */
15 function book_get_menus() {
16 $menus = array();
17 foreach (book_get_books() AS $book) {
18 $menus[$book['menu_name']] = $book['title'];
19 }
20 return $menus;
21 }

  ViewVC Help
Powered by ViewVC 1.1.2