'#description'=>t("If <em>Show block on all pages</em> is selected, the block will contain the automatically generated menus for all of the site's books. If <em>Show block only on book pages</em> is selected, the block will contain only the one menu corresponding to the current page's book. In this case, if the current page is not in a book, no block will be displayed. The <em>Page specific visibility settings</em> or other visibility settings can be used in addition to selectively display this block."),
'#description'=>t("If <em>Show block on all pages</em> is selected, the block will contain the automatically generated menus for all of the site's books. If <em>Show block only on book pages</em> is selected, the block will contain only the one menu corresponding to the current page's book. In this case, if the current page is not in a book, no block will be displayed. The <em>Page specific visibility settings</em> or other visibility settings can be used in addition to selectively display this block."),
$result2=db_query(db_rewrite_sql("SELECT n.type, n.title, b.*, ml.* FROM {book} b INNER JOIN {node} n on b.nid = n.nid INNER JOIN {menu_links} ml ON b.mlid = ml.mlid WHERE n.nid IN (".implode(',',$nids).") AND n.status = 1 ORDER BY ml.weight, ml.link_title"));
$result2=db_query(db_rewrite_sql("SELECT n.type, n.title, b.*, ml.* FROM {book} b INNER JOIN {node} n on b.nid = n.nid INNER JOIN {menu_links} ml ON b.mlid = ml.mlid WHERE n.nid IN (".implode(',',$nids).") AND n.status = 1 ORDER BY ml.weight, ml.link_title"));
while($link=db_fetch_array($result2)){
while($link=db_fetch_array($result2)){
...
@@ -269,11 +281,14 @@ function book_get_books() {
...
@@ -269,11 +281,14 @@ function book_get_books() {
}
}
}
}
}
}
return$all_books;
return$all_books;
}
}
/**
/**
* Implementation of hook_form_alter(). Adds the book fieldset to the node form.