Full ELMS Learning Network documentation
function theme_admin_block
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).cis7 system.admin.inc | theme_admin_block($variables) |
cle7 system.admin.inc | theme_admin_block($variables) |
elmsmedia7 system.admin.inc | theme_admin_block($variables) |
icor7 system.admin.inc | theme_admin_block($variables) |
meedjum_blog7 system.admin.inc | theme_admin_block($variables) |
mooc7 system.admin.inc | theme_admin_block($variables) |
Returns HTML for an administrative block for display.
Parameters
$variables: An associative array containing:
- block: An array containing information about the block:
- show: A Boolean whether to output the block. Defaults to FALSE.
- title: The block's title.
- content: (optional) Formatted content for the block.
- description: (optional) Description of the block. Only output if 'content' is not set.
Related topics
2 theme calls to theme_admin_block()
- theme_admin_page in modules/
system/ system.admin.inc - Returns HTML for an administrative page.
- theme_system_admin_index in modules/
system/ system.admin.inc - Returns HTML for the output of the dashboard page.
3 string references to the theme hook from theme_admin_block()
Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.
- system_theme in modules/
system/ system.module - Implements hook_theme().
- theme_admin_page in modules/
system/ system.admin.inc - Returns HTML for an administrative page.
- theme_system_admin_index in modules/
system/ system.admin.inc - Returns HTML for the output of the dashboard page.
File
- modules/
system/ system.admin.inc, line 2394 - Admin page callbacks for the system module.
Code
function theme_admin_block($variables) {
$block = $variables['block'];
$output = '';
// Don't display the block if it has no content to display.
if (empty($block['show'])) {
return $output;
}
$output .= '<div class="admin-panel">';
if (!empty($block['title'])) {
$output .= '<h3>' . $block['title'] . '</h3>';
}
if (!empty($block['content'])) {
$output .= '<div class="body">' . $block['content'] . '</div>';
}
else {
$output .= '<div class="description">' . $block['description'] . '</div>';
}
$output .= '</div>';
return $output;
}