| Versionen | |
|---|---|
| drupal6 – drupal7 | block_admin_display($theme = NULL) |
Menu callback for admin/build/block.
modules/
<?php
function block_admin_display($theme = NULL) {
global $custom_theme;
// If non-default theme configuration has been selected, set the custom theme.
$custom_theme = isset($theme) ? $theme : variable_get('theme_default', 'garland');
// Fetch and sort blocks
$blocks = _block_rehash();
usort($blocks, '_block_compare');
return drupal_get_form('block_admin_display_form', $blocks, $theme);
}
?>
Kommentare
Kommentar hinzufügen