You are here

function book_admin_overview in Drupal 7

Same name and namespace in other branches
  1. 4 modules/book.module \book_admin_overview()
  2. 5 modules/book/book.module \book_admin_overview()
  3. 6 modules/book/book.admin.inc \book_admin_overview()

Returns an administrative overview of all books.

Return value

string A HTML-formatted string with the administrative page content.

See also

book_menu()

1 string reference to 'book_admin_overview'
book_menu in modules/book/book.module
Implements hook_menu().

File

modules/book/book.admin.inc, line 16
Administration page callbacks for the Book module.

Code

function book_admin_overview() {
  $rows = array();
  $headers = array(
    t('Book'),
    t('Operations'),
  );

  // Add any recognized books to the table list.
  foreach (book_get_books() as $book) {
    $rows[] = array(
      l($book['title'], $book['href'], $book['options']),
      l(t('edit order and titles'), 'admin/content/book/' . $book['nid']),
    );
  }
  return theme('table', array(
    'header' => $headers,
    'rows' => $rows,
    'empty' => t('No books available.'),
  ));
}