function theme_dashboard_disabled_blocks

7.x dashboard.module theme_dashboard_disabled_blocks($variables)

Returns HTML for disabled blocks, for use in dashboard customization mode.

Parameters

$variables: An associative array containing:

Related topics

1 theme call to theme_dashboard_disabled_blocks()
dashboard_show_disabled in drupal/modules/dashboard/dashboard.module
Ajax callback: Shows disabled blocks in the dashboard customization mode.
2 string references to the theme hook from theme_dashboard_disabled_blocks()

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.

dashboard_show_disabled in drupal/modules/dashboard/dashboard.module
Ajax callback: Shows disabled blocks in the dashboard customization mode.
dashboard_theme in drupal/modules/dashboard/dashboard.module
Implements hook_theme().

File

drupal/modules/dashboard/dashboard.module, line 646
Provides a dashboard page in the administrative interface.

Code

function theme_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. More options are available on the <a href="@dashboard-url">configuration page</a>.', array('@dashboard-url' => url('admin/dashboard/configure'))) . '</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 .= '<p class="dashboard-add-other-blocks">' . l(t('Add other blocks'), 'admin/dashboard/configure') . '</p>';
  $output .= '</div></div></div>';
  return $output;
}