function theme_book_admin_table


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 theme_book_admin_table($variables)
cle7 theme_book_admin_table($variables)
elmsmedia7 theme_book_admin_table($variables)
icor7 theme_book_admin_table($variables)
meedjum_blog7 theme_book_admin_table($variables)
mooc7 theme_book_admin_table($variables)

Returns HTML for a book administration form.


$variables: An associative array containing:

  • form: A render element representing the form.

See also


Related topics

3 string references to the theme hook from theme_book_admin_table()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

book_theme in modules/book/book.module
Implements hook_theme().
outline_designer_book_theme_registry_alter in sites/all/modules/elmsln_contrib/outline_designer/modules/outline_designer_book/outline_designer_book.module
Implements hook_theme_registry_alter().
_book_admin_table in modules/book/
Builds the table portion of the form for the book administration page.


modules/book/, line 252
Administration page callbacks for the Book module.


function theme_book_admin_table($variables) {
  $form = $variables['form'];

  drupal_add_tabledrag('book-outline', 'match', 'parent', 'book-plid', 'book-plid', 'book-mlid', TRUE, MENU_MAX_DEPTH - 2);
  drupal_add_tabledrag('book-outline', 'order', 'sibling', 'book-weight');

  $header = array(t('Title'), t('Weight'), t('Parent'), array(
    'data' => t('Operations'),
    'colspan' => '3',

  $rows = array();
  $destination = drupal_get_destination();
  $access = user_access('administer nodes');
  foreach (element_children($form) as $key) {
    $nid = $form[$key]['nid']['#value'];
    $href = $form[$key]['href']['#value'];

    // Add special classes to be used with tabledrag.js.
    $form[$key]['plid']['#attributes']['class'] = array('book-plid');
    $form[$key]['mlid']['#attributes']['class'] = array('book-mlid');
    $form[$key]['weight']['#attributes']['class'] = array('book-weight');

    $data = array(
      theme('indentation', array('size' => $form[$key]['depth']['#value'] - 2)) . drupal_render($form[$key]['title']),
      drupal_render($form[$key]['plid']) . drupal_render($form[$key]['mlid']),
      l(t('view'), $href),
      $access ? l(t('edit'), 'node/' . $nid . '/edit', array('query' => $destination)) : ' ',
      $access ? l(t('delete'), 'node/' . $nid . '/delete', array('query' => $destination)) : ' ',
    $row = array('data' => $data);
    if (isset($form[$key]['#attributes'])) {
      $row = array_merge($row, $form[$key]['#attributes']);
    $row['class'][] = 'draggable';
    $rows[] = $row;

  return theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'book-outline'), 'empty' => t('No book content available.')));



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.