- Renamed _node() to _node_info()! We reserve _node for _nodeapi.

4.7.x
Dries Buytaert 2005-08-29 19:58:49 +00:00
parent 75fad91cf5
commit 246274eb16
14 changed files with 26 additions and 26 deletions

View File

@ -7,9 +7,9 @@
*/ */
/** /**
* Implementation of hook_node(). * Implementation of hook_node_info().
*/ */
function blog_node() { function blog_node_info() {
return array('blog' => array('name' => t('personal blog entry'), 'base' => 'blog')); return array('blog' => array('name' => t('personal blog entry'), 'base' => 'blog'));
} }

View File

@ -7,9 +7,9 @@
*/ */
/** /**
* Implementation of hook_node(). * Implementation of hook_node_info().
*/ */
function blog_node() { function blog_node_info() {
return array('blog' => array('name' => t('personal blog entry'), 'base' => 'blog')); return array('blog' => array('name' => t('personal blog entry'), 'base' => 'blog'));
} }

View File

@ -7,9 +7,9 @@
*/ */
/** /**
* Implementation of hook_node(). * Implementation of hook_node_info().
*/ */
function book_node() { function book_node_info() {
return array('book' => array('name' => t('book page'), 'base' => 'book')); return array('book' => array('name' => t('book page'), 'base' => 'book'));
} }

View File

@ -7,9 +7,9 @@
*/ */
/** /**
* Implementation of hook_node(). * Implementation of hook_node_info().
*/ */
function book_node() { function book_node_info() {
return array('book' => array('name' => t('book page'), 'base' => 'book')); return array('book' => array('name' => t('book page'), 'base' => 'book'));
} }

View File

@ -27,9 +27,9 @@ function forum_help($section) {
} }
/** /**
* Implementation of hook_node(). * Implementation of hook_node_info().
*/ */
function forum_node() { function forum_node_info() {
return array('forum' => array('name' => t('forum topic'), 'base' => 'forum')); return array('forum' => array('name' => t('forum topic'), 'base' => 'forum'));
} }

View File

@ -27,9 +27,9 @@ function forum_help($section) {
} }
/** /**
* Implementation of hook_node(). * Implementation of hook_node_info().
*/ */
function forum_node() { function forum_node_info() {
return array('forum' => array('name' => t('forum topic'), 'base' => 'forum')); return array('forum' => array('name' => t('forum topic'), 'base' => 'forum'));
} }

View File

@ -206,7 +206,7 @@ function _node_names($op = '', $node = NULL) {
static $node_names, $node_list; static $node_names, $node_list;
if (!isset($node_names)) { if (!isset($node_names)) {
$node_names = module_invoke_all('node'); $node_names = module_invoke_all('node_info');
foreach ($node_names as $type => $value) { foreach ($node_names as $type => $value) {
$node_list[$type] = $value['name']; $node_list[$type] = $value['name'];
} }

View File

@ -206,7 +206,7 @@ function _node_names($op = '', $node = NULL) {
static $node_names, $node_list; static $node_names, $node_list;
if (!isset($node_names)) { if (!isset($node_names)) {
$node_names = module_invoke_all('node'); $node_names = module_invoke_all('node_info');
foreach ($node_names as $type => $value) { foreach ($node_names as $type => $value) {
$node_list[$type] = $value['name']; $node_list[$type] = $value['name'];
} }

View File

@ -26,9 +26,9 @@ function page_perm() {
} }
/** /**
* Implementation of hook_node(). * Implementation of hook_node_info().
*/ */
function page_node() { function page_node_info() {
return array('page' => array('name' => t('page'), 'base' => 'page')); return array('page' => array('name' => t('page'), 'base' => 'page'));
} }

View File

@ -26,9 +26,9 @@ function page_perm() {
} }
/** /**
* Implementation of hook_node(). * Implementation of hook_node_info().
*/ */
function page_node() { function page_node_info() {
return array('page' => array('name' => t('page'), 'base' => 'page')); return array('page' => array('name' => t('page'), 'base' => 'page'));
} }

View File

@ -258,9 +258,9 @@ function poll_load($node) {
} }
/** /**
* Implementation of hook_node(). * Implementation of hook_node_info().
*/ */
function poll_node() { function poll_node_info() {
return array('poll' => array('name' => t("poll"), 'base' => 'poll')); return array('poll' => array('name' => t("poll"), 'base' => 'poll'));
} }

View File

@ -258,9 +258,9 @@ function poll_load($node) {
} }
/** /**
* Implementation of hook_node(). * Implementation of hook_node_info().
*/ */
function poll_node() { function poll_node_info() {
return array('poll' => array('name' => t("poll"), 'base' => 'poll')); return array('poll' => array('name' => t("poll"), 'base' => 'poll'));
} }

View File

@ -19,9 +19,9 @@ function story_help($section) {
} }
/** /**
* Implementation of hook_node(). * Implementation of hook_node_info().
*/ */
function story_node() { function story_node_info() {
return array('story' => array('name' => t('story'), 'base' => 'story')); return array('story' => array('name' => t('story'), 'base' => 'story'));
} }

View File

@ -19,9 +19,9 @@ function story_help($section) {
} }
/** /**
* Implementation of hook_node(). * Implementation of hook_node_info().
*/ */
function story_node() { function story_node_info() {
return array('story' => array('name' => t('story'), 'base' => 'story')); return array('story' => array('name' => t('story'), 'base' => 'story'));
} }