'#description'=>t('The parent that this page belongs in. Note that pages whose parent is <top-level> are regarded as independent, top-level books.')
@@ -540,10 +548,8 @@ function book_toc($exclude = 0) {
}
$toc=array();
// If the user is an administrator, add the top-level book page;
// only administrators can start new books.
if(user_access('administer nodes')){
// If the user has permission to create new books, add the top-level book page to the menu;
if(user_access('create new books')){
$toc[0]='<'.t('top-level').'>';
}
...
...
@@ -1019,7 +1025,7 @@ function book_help($section) {
<li>administer individual books (choose a book from list): <a href="%admin-node-book">administer >> content >> books</a>.</li>
<li>set workflow and other global book settings on the book configuration page: <a href="%admin-settings-content-types-book-page" title="book page content type">administer >> settings >> content types >> configure book page</a>.</li>
<li>enable the book navigation block: <a href="%admin-block">administer >> blocks</a>.</li>
<li>control who can create, edit, and maintain book pages by setting access permissions: <a href="%admin-access">administer >> access control</a>.</li>
<li>control who can create, edit, and outline posts in books by setting access permissions: <a href="%admin-access">administer >> access control</a>.</li>
$output.='<p>'.t('For more information please read the configuration and customization handbook <a href="%book">Book page</a>.',array('%book'=>'http://www.drupal.org/handbook/modules/book/')).'</p>';
'#description'=>t('The parent that this page belongs in. Note that pages whose parent is <top-level> are regarded as independent, top-level books.')
@@ -540,10 +548,8 @@ function book_toc($exclude = 0) {
}
$toc=array();
// If the user is an administrator, add the top-level book page;
// only administrators can start new books.
if(user_access('administer nodes')){
// If the user has permission to create new books, add the top-level book page to the menu;
if(user_access('create new books')){
$toc[0]='<'.t('top-level').'>';
}
...
...
@@ -1019,7 +1025,7 @@ function book_help($section) {
<li>administer individual books (choose a book from list): <a href="%admin-node-book">administer >> content >> books</a>.</li>
<li>set workflow and other global book settings on the book configuration page: <a href="%admin-settings-content-types-book-page" title="book page content type">administer >> settings >> content types >> configure book page</a>.</li>
<li>enable the book navigation block: <a href="%admin-block">administer >> blocks</a>.</li>
<li>control who can create, edit, and maintain book pages by setting access permissions: <a href="%admin-access">administer >> access control</a>.</li>
<li>control who can create, edit, and outline posts in books by setting access permissions: <a href="%admin-access">administer >> access control</a>.</li>
$output.='<p>'.t('For more information please read the configuration and customization handbook <a href="%book">Book page</a>.',array('%book'=>'http://www.drupal.org/handbook/modules/book/')).'</p>';