' . t('About') . '';
$output .= '
' . $element['#children'] . '
';
}
/**
* Theme the page containing the dashboard.
*
* @param $variables
* An associative array containing:
* - elements: An associative array containing the properties of the element.
* Properties used: #message
* @return
* A themed HTML string representing the non-customizable part of the
* dashboard page.
*
* @ingroup themeable
*/
function theme_dashboard_admin($variables) {
// We only return a simple help message, since the actual content of the page
// will be populated via the dashboard regions in dashboard_page_build().
return '' . $variables['element']['#message'] . '
';
}
/**
* Theme a generic dashboard region.
*
* @param $variables
* - element: An associative array containing the properties of the dashboard region
* element. Properties used: #dashboard_region, #children
* @return
* A string representing the themed dashboard region.
*
* @ingroup themeable
*/
function theme_dashboard_region($variables) {
extract($variables);
$output = '';
$output .= '
';
$output .= $element['#children'];
// Closing div.region
$output .= '
';
// Closing div.dashboard-region
$output .= '
';
return $output;
}
/**
* Theme a set of disabled blocks, for display in dashboard customization mode.
*
* @param $variables
* - blocks: An array of block objects from _block_rehash().
* @return
* A string representing the disabled blocks region of the dashboard
* customization page.
*
* @ingroup themeable
*/
function theme_dashboard_disabled_blocks($variables) {
extract($variables);
$output = '' . t('Drag and drop these to the columns below. Changes are automatically saved.') . '
';
$output .= '
';
foreach ($blocks as $block) {
$output .= theme('dashboard_disabled_block', array('block' => $block));
}
$output .= '
';
return $output;
}
/**
* Theme a disabled block, for display in dashboard customization mode.
*
* @param $variables
* - block: A block object from _block_rehash().
* @return
* A string representing the disabled block.
*
* @ingroup themeable
*/
function theme_dashboard_disabled_block($variables) {
extract($variables);
$output = "";
if (isset($block)) {
$output .= '