diff --git a/modules/book/book.module b/modules/book/book.module index 739a3e8..52c7c82 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -268,7 +268,7 @@ function book_get_books($type = null) { if ($nids) { $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)) { - if (!isset($type) || !variable_get('book_restrict_to_types', false) || $link['type'] == $type) { + if (!isset($type) || !variable_get('book_restrict_to_types', false) || $link['type'] == $type || ($type == 'stormdok' && $link['type'] == 'stormproject')) { $link['href'] = $link['link_path']; $link['options'] = unserialize($link['options']); $all_books[$link['bid']] = $link;