diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-07-17 20:57:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-07-17 20:57:43 +0000 |
commit | 2895357de0af2ea92bc758b20f4e305902e7b02f (patch) | |
tree | 0a7bb76a39496368386762dff42c64f8b2eb9182 /modules/blogapi/blogapi.module | |
parent | 28c72cd89d66ad4d8c2a5d19a620a8d3914e356d (diff) | |
download | brdo-2895357de0af2ea92bc758b20f4e305902e7b02f.tar.gz brdo-2895357de0af2ea92bc758b20f4e305902e7b02f.tar.bz2 |
- Modified patch #25031 by chx: modified node_list() so one has both the module and its type.
TODO: update migration page in handbook.
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 1a4e8f6b7..df376580f 100644 --- a/modules/blogapi/blogapi.module +++ b/modules/blogapi/blogapi.module @@ -535,7 +535,7 @@ function blogapi_blogger_title(&$contents) { function blogapi_settings() { $output = form_select(t('XML-RPC Engine'), 'blogapi_engine', variable_get('blogapi_engine', 0), array(0 => 'Blogger', 1 => 'MetaWeblog', 2 => 'Movabletype'), t('RSD or Really-Simple-Discovery is a mechanism which allows external blogger tools to discover the APIs they can use to interact with Drupal. Here you can set the preferred method for blogger tools to interact with your site. The common XML-RPC engines are Blogger, MetaWeblog and Movabletype. If you are not sure which is the correct setting, choose Blogger.')); - foreach (node_list() as $type) { + foreach (node_list() as $type => $module) { $node_types[$type] = node_invoke($type, 'node_name'); if (in_array($type, array('blog'))) { $defaults[] = $type; @@ -707,7 +707,7 @@ function _blogapi_blogid($id) { function _blogapi_get_node_types() { $available_types = variable_get('blogapi_node_types', array('blog')); $types = array(); - foreach (node_list() as $type) { + foreach (node_list() as $type => $module) { if (node_access('create', $type) && in_array($type, $available_types)) { $types[] = $type; } |