diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-04-06 13:27:23 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-04-06 13:27:23 +0000 |
commit | 5bbbf10ba84042b8576d67576d98922c0063c6d6 (patch) | |
tree | a2eef7bccd7d5289426b3c8edc23f52bc9f6e2ed /modules/node | |
parent | 21c5b71795aec277a8b01ecea74e809a24be0229 (diff) | |
download | brdo-5bbbf10ba84042b8576d67576d98922c0063c6d6.tar.gz brdo-5bbbf10ba84042b8576d67576d98922c0063c6d6.tar.bz2 |
- Patch #130987 by merlinofchaos: added theme registry for easier themability.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 19cb9b232..92443f605 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -46,6 +46,38 @@ function node_help($section) { } /** + * Implementation of hook_theme() + */ +function node_theme() { + return array( + 'node_list' => array( + 'arguments' => array('items' => NULL, 'title' => NULL), + ), + 'node_search_admin' => array( + 'arguments' => array('form' => NULL), + ), + 'node_filter_form' => array( + 'arguments' => array('form' => NULL), + ), + 'node_filters' => array( + 'arguments' => array('form' => NULL), + ), + 'node_admin_nodes' => array( + 'arguments' => array('form' => NULL), + ), + 'node_form' => array( + 'arguments' => array('form' => NULL), + ), + 'node_preview' => array( + 'arguments' => array('node' => NULL), + ), + 'node_log_message' => array( + 'arguments' => array('log' => NULL), + ), + ); +} + +/** * Implementation of hook_cron(). */ function node_cron() { @@ -2349,7 +2381,6 @@ function node_revisions() { * Menu callback; Generate a listing of promoted nodes. */ function node_page_default() { - $result = pager_query(db_rewrite_sql('SELECT n.nid, n.sticky, n.created FROM {node} n WHERE n.promote = 1 AND n.status = 1 ORDER BY n.sticky DESC, n.created DESC'), variable_get('default_nodes_main', 10)); if (db_num_rows($result)) { |