summaryrefslogtreecommitdiff
path: root/modules/path
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/path
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/path')
-rw-r--r--modules/path/path.admin.inc12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/path/path.admin.inc b/modules/path/path.admin.inc
index 5276452ef..2809b7090 100644
--- a/modules/path/path.admin.inc
+++ b/modules/path/path.admin.inc
@@ -13,7 +13,7 @@
*/
function path_admin_overview($keys = NULL) {
// Add the filter form above the overview table.
- $output = drupal_get_form('path_admin_filter_form', $keys);
+ $build['path_admin_filter_form'] = drupal_get_form('path_admin_filter_form', $keys);
// Enable language column if locale is enabled or if we have any alias with language
$alias_exists = (bool) db_query_range('SELECT 1 FROM {url_alias} WHERE language <> :language', array(':language' => ''), 0, 1)->fetchField();
$multilanguage = (module_exists('locale') || $alias_exists);
@@ -63,10 +63,14 @@ function path_admin_overview($keys = NULL) {
$rows[] = array(array('data' => $empty_message, 'colspan' => ($multilanguage ? 5 : 4)));
}
- $output .= theme('table', $header, $rows);
- $output .= theme('pager', NULL);
+ $build['path_table'] = array(
+ '#theme' => 'table',
+ '#header' => $header,
+ '#rows' => $rows
+ );
+ $build['path_pager'] = array('#theme' => 'pager');
- return $output;
+ return $build;
}
/**