From cab88a70149d7a1302d1e1e930fc19f909086a25 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 4 Jun 2009 03:33:29 +0000 Subject: #220233 by Berdir, marcingy, et al: Add useful API functions for extracting node type data. --- modules/blogapi/blogapi.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/blogapi/blogapi.module') diff --git a/modules/blogapi/blogapi.module b/modules/blogapi/blogapi.module index 8f6f36099..52ebbb0eb 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -719,7 +719,7 @@ function blogapi_blogger_title(&$contents) { * Add some settings to the admin_settings form. */ function blogapi_admin_settings() { - $node_types = array_map('check_plain', node_get_types('names')); + $node_types = array_map('check_plain', node_type_get_names()); $defaults = isset($node_types['blog']) ? array('blog' => 1) : array(); $form['blogapi_node_types'] = array( '#type' => 'checkboxes', @@ -959,7 +959,7 @@ function _blogapi_validate_blogid($blogid) { function _blogapi_get_node_types() { $available_types = array_keys(array_filter(variable_get('blogapi_node_types', array('blog' => 1)))); $types = array(); - foreach (node_get_types() as $type => $name) { + foreach (node_type_get_types() as $type => $name) { if (node_access('create', $type) && in_array($type, $available_types)) { $types[] = $type; } -- cgit v1.2.3