You are here

function theme_user_dashboard_disabled_block in UserDashboard 7

Theme disabled block.

Returns HTML for a disabled block, for display in dashboard customization mode.

Parameters

array $variables: An associative array containing:

File

./user_dashboard.module, line 758
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_block($variables) {
  extract($variables);
  $output = "";
  if (isset($block)) {
    $output .= '<div id="block-' . $block['module'] . '-' . $block['delta'];
    $output .= '" class="disabled-block block block-' . $block['module'] . '-' . $block['delta'];
    $output .= ' module-' . $block['module'] . ' delta-' . $block['delta'] . '">';
    $output .= '<h2>' . (!empty($block['title']) && $block['title'] != '<none>' ? check_plain($block['title']) : check_plain($block['info'])) . '</h2>';
    $output .= '<div class="content"></div>';
    $output .= '</div>';
  }
  return $output;
}