summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-29 06:39:35 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-29 06:39:35 +0000
commit715a2d655f70675f3bec8a320a864865d6d02d47 (patch)
treefffff07032e77f118a4290fc62f290d91cf831f0 /modules/node
parent40c8986ac74b0ab15f0571c24052d1be06bd2ccb (diff)
downloadbrdo-715a2d655f70675f3bec8a320a864865d6d02d47.tar.gz
brdo-715a2d655f70675f3bec8a320a864865d6d02d47.tar.bz2
- Patch #511748 by moshe weitzman: pushing rending to later in the cycle so there is more room for customization.
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/content_types.inc8
-rw-r--r--modules/node/node.module2
-rw-r--r--modules/node/node.pages.inc8
3 files changed, 15 insertions, 3 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc
index d869153de..597576021 100644
--- a/modules/node/content_types.inc
+++ b/modules/node/content_types.inc
@@ -37,8 +37,14 @@ function node_overview_types() {
if (empty($rows)) {
$rows[] = array(array('data' => t('No content types available. <a href="@link">Add content type</a>.', array('@link' => url('admin/structure/types/add'))), 'colspan' => '5', 'class' => 'message'));
}
+
+ $build['node_table'] = array(
+ '#theme' => 'table',
+ '#header' => $header,
+ '#rows' => $rows
+ );
- return theme('table', $header, $rows);
+ return $build;
}
function theme_node_admin_overview($name, $type) {
diff --git a/modules/node/node.module b/modules/node/node.module
index 5e13be9e0..5f8e30f5a 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1991,7 +1991,7 @@ function node_page_default() {
$feed_url = url('rss.xml', array('absolute' => TRUE));
drupal_add_feed($feed_url, variable_get('site_name', 'Drupal') . ' ' . t('RSS'));
$build['pager'] = array(
- '#markup' => theme('pager', NULL),
+ '#theme' => 'pager',
'#weight' => 5,
);
drupal_set_title('');
diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc
index 6990d6c19..42fd59b8e 100644
--- a/modules/node/node.pages.inc
+++ b/modules/node/node.pages.inc
@@ -512,8 +512,14 @@ function node_revision_overview($node) {
}
$rows[] = array_merge($row, $operations);
}
+
+ $build['node_revisions_table'] = array(
+ '#theme' => 'table',
+ '#rows' => $rows,
+ '#header' => $header,
+ );
- return theme('table', $header, $rows);
+ return $build;
}
/**