? flexbook_15.diff ? hook.names.diff Index: outline.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/outline/outline.module,v retrieving revision 1.1 diff -u -p -r1.1 outline.module --- outline.module 29 Dec 2006 06:12:17 -0000 1.1 +++ outline.module 31 Dec 2006 09:39:45 -0000 @@ -14,7 +14,7 @@ /** * Implementation of hook_node_info(). */ -function book_node_info() { +function outline_node_info() { return array( 'book_page' => array( 'name' => t('Book page'), @@ -27,7 +27,7 @@ function book_node_info() { /** * Implementation of hook_perm(). */ -function book_perm() { +function outline_perm() { return array('outline posts in books', 'create book pages', 'create new books', 'edit book pages', 'edit own book pages', 'see printer-friendly version'); } @@ -54,7 +54,7 @@ function book_page_access($op, $node) { /** * Implementation of hook_link(). */ -function book_link($type, $node = NULL, $teaser = FALSE) { +function outline_link($type, $node = NULL, $teaser = FALSE) { $links = array(); if ($type == 'node' && isset($node->book_id)) { @@ -101,7 +101,7 @@ function book_link($type, $node = NULL, /** * Implementation of hook_menu(). */ -function book_menu($may_cache) { +function outline_menu($may_cache) { $items = array(); if ($may_cache) { @@ -170,7 +170,7 @@ function book_menu($may_cache) { * The navigation block displays the book table of contents in a block when the * current page is a single-node view a node that's in the book hierarchy. */ -function book_block($op = 'list', $delta = 0) { +function outline_block($op = 'list', $delta = 0) { $block = array(); if ($op == 'list') { $block['navigation']['info'] = t('Book navigation'); @@ -602,7 +602,7 @@ function theme_book_toc($node) { * Handles all load/view/submit/insert/update/delete/delete revision opertions * necessary for */ -function book_nodeapi(&$node, $op, $teaser, $page) { +function outline_nodeapi(&$node, $op, $teaser, $page) { switch ($op) { case 'load': //all types handled here including book_page and book $page_load = db_fetch_array(db_query('SELECT * FROM {book_pages} WHERE nid = %d', $node->nid)); @@ -1339,7 +1339,7 @@ function book_admin_overview() { /** * Implementation of hook_help(). */ -function book_help($section) { +function outline_help($section) { switch ($section) { case 'admin/help#book': $output = '

'. t('The book module is suited for creating structured, multi-page hypertexts such as site resource guides, manuals, and Frequently Asked Questions (FAQs). It permits a document to have chapters, sections, subsections, etc. Authors with suitable permissions can add pages to a collaborative book, placing them into the existing document by adding them to a table of contents menu.') .'

'; @@ -1364,7 +1364,7 @@ function book_help($section) { /** * Implementation of hook_form_alter() */ -function book_form_alter($form_id, &$form) { +function outline_form_alter($form_id, &$form) { if ($form_id == 'node_delete_confirm') { $node = node_load($form['nid']['#value']); if (isset($node->book_id)) {