You are here

function book_made_simple_reorder in Book made simple 7.3

Same name and namespace in other branches
  1. 6.3 book_made_simple.module \book_made_simple_reorder()

Creates shortuct to reorder book page from node object.

1 string reference to 'book_made_simple_reorder'
book_made_simple_menu in ./book_made_simple.module
Implementats hook_menu().

File

./book_made_simple.module, line 132
Automaticly creats a book and simple creation of child pages. Author: M. Morin

Code

function book_made_simple_reorder($node) {

  // TODO array('query' => array("destination" => "node/" . $node->nid)) needs to be an array of keys and values instead of a string.
  drupal_goto("admin/content/book/" . $node->book['bid'], array(
    'query' => array(
      "destination" => "node/" . $node->nid,
    ),
  ));
}