theme_dashboard_disabled_blocks

function theme_dashboard_disabled_blocks

theme_dashboard_disabled_blocks($variables)

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

Parameters

$variables: An associative array containing:

Related topics

File

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="drupal_7-modules-dashboard-dashboard-module-function-theme_dashboard_disabled_blocks-@dashboard-url.html?lang=en">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;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!dashboard!dashboard.module/function/theme_dashboard_disabled_blocks/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部