diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-06-04 03:33:29 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-06-04 03:33:29 +0000 |
commit | cab88a70149d7a1302d1e1e930fc19f909086a25 (patch) | |
tree | ae64e7c211fc6150dfac0a1fdb456ba893c02aca /modules/blogapi/blogapi.module | |
parent | 6fc4eb9f945ecd7c2bea4742e3febe4632c88e99 (diff) | |
download | brdo-cab88a70149d7a1302d1e1e930fc19f909086a25.tar.gz brdo-cab88a70149d7a1302d1e1e930fc19f909086a25.tar.bz2 |
#220233 by Berdir, marcingy, et al: Add useful API functions for extracting node type data.
Diffstat (limited to 'modules/blogapi/blogapi.module')
-rw-r--r-- | modules/blogapi/blogapi.module | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |