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/node/node.admin.inc | |
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/node/node.admin.inc')
-rw-r--r-- | modules/node/node.admin.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.admin.inc b/modules/node/node.admin.inc index d17948155..3750e5891 100644 --- a/modules/node/node.admin.inc +++ b/modules/node/node.admin.inc @@ -144,7 +144,7 @@ function node_filters() { ); } - $filters['type'] = array('title' => t('type'), 'options' => node_get_types('names')); + $filters['type'] = array('title' => t('type'), 'options' => node_type_get_names()); // The taxonomy filter if ($taxonomy = module_invoke('taxonomy', 'form_all', 1)) { @@ -501,7 +501,7 @@ function node_admin_nodes() { $nodes[$node->nid] = ''; $options = empty($node->language) ? array() : array('language' => $languages[$node->language]); $form['title'][$node->nid] = array('#markup' => l($node->title, 'node/' . $node->nid, $options) . ' ' . theme('mark', node_mark($node->nid, $node->changed))); - $form['name'][$node->nid] = array('#markup' => check_plain(node_get_types('name', $node))); + $form['name'][$node->nid] = array('#markup' => check_plain(node_type_get_name($node))); $form['username'][$node->nid] = array('#markup' => theme('username', $node)); $form['status'][$node->nid] = array('#markup' => ($node->status ? t('published') : t('not published'))); $form['changed'][$node->nid] = array('#markup' => format_date($node->changed, 'small')); |