function theme_user_dashboard_disabled_blocks in UserDashboard 7
Theme disabled blocks.
Returns HTML for a set of disabled blocks, for display in dashboard customization mode.
Parameters
array $variables: An associative array containing:
- blocks: An array of block objects from _block_rehash();
1 theme call to theme_user_dashboard_disabled_blocks()
- user_dashboard_show_disabled in ./
user_dashboard.module - AJAX callback to show disabled blocks in the dashboard customization mode.
File
- ./
user_dashboard.module, line 731 - The User Dashboard module forks Drupal 7's awesome Dashboard module to provide an individual dashboard for each user on the site.
Code
function theme_user_dashboard_disabled_blocks($variables) {
extract($variables);
$output = '<div class="canvas-content"><p>' . t('Drag and drop these blocks to the columns below. Changes are automatically saved.') . '</p>';
if (user_access('administer blocks')) {
$output .= '<p>' . t('More options are available on the UserDashboard <a href="@dashboard-url">configuration page</a>.', array(
'@dashboard-url' => url('admin/dashboard/user_dashboard/settings'),
)) . '</p>';
}
$output .= '<div id="disabled-blocks"><div class="region disabled-blocks clearfix">';
foreach ($blocks as $block) {
$output .= theme('dashboard_disabled_block', array(
'block' => $block,
));
}
$output .= '<div class="clearfix"></div>';
$output .= '</div></div></div>';
return $output;
}