diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-07 13:51:58 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-07 13:51:58 +0000 |
commit | a4411976fd67b01b02063f3c7a757df4e300761a (patch) | |
tree | bf595e3c6c9cd97309286294ffa1d79736e8382b /modules/node | |
parent | d3c9cbfc3a49cf269a943fef220b60a107fef363 (diff) | |
download | brdo-a4411976fd67b01b02063f3c7a757df4e300761a.tar.gz brdo-a4411976fd67b01b02063f3c7a757df4e300761a.tar.bz2 |
- Patch #373201 by Berdir: clean-up of some drupal_render() oversight.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 7fc0e7ab8..fff04872a 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -1149,8 +1149,9 @@ function node_build_content($node, $build_mode = 'full') { ); } $node->content['links']['node'] = array( - '#type' => 'node_links', - '#value' => $links + '#theme' => 'links', + '#links' => $links, + '#attributes' => array('class' => 'links inline'), ); // Allow modules to make their own additions to the node. @@ -3131,30 +3132,6 @@ function node_list_permissions($type) { } /** - * Implement hook_elements(). - */ -function node_elements() { - $type['node_links'] = array('#theme' => 'node_links'); - - return $type; -} - -/** - * Format a set of node links. - * - * @param $element - * An associative array containing the properties of the element. - * Properties used: value - * @return - * A themed HTML string representing the links. - * - * @ingroup themeable - */ -function theme_node_links($element) { - return theme('links', $element['#value'], array('class' => 'links inline')); -} - -/** * Implement hook_requirements(). */ function node_requirements($phase) { |