1 dashboard.module | dashboard_block_info() |
Implements hook_block_info().
File
- core/
modules/ dashboard/ dashboard.module, line 76 - Provides an administrative dashboard.
Code
function dashboard_block_info() {
$blocks = array();
// Dashboard blocks.
$blocks['welcome'] = array(
'info' => t('Dashboard - Welcome to Backdrop CMS!'),
'description' => t('Provides a welcome message, and links to get people started using Backdrop'),
'class' => 'DashboardWelcomeBlock',
'required contexts' => array('dashboard'),
);
$blocks['create'] = array(
'info' => t('Dashboard - Create content'),
'description' => t('Provides links to create new content'),
'class' => 'DashboardCreateBlock',
'required contexts' => array('dashboard'),
);
$blocks['menu'] = array(
'info' => t('Dashboard - Menus'),
'description' => t('Provides links to manage menus'),
'class' => 'DashboardMenuBlock',
'required contexts' => array('dashboard'),
);
$blocks['node_types'] = array(
'info' => t('Dashboard - Content types'),
'description' => t('Provides links to manage content types'),
'class' => 'DashboardContentTypesBlock',
'required contexts' => array('dashboard'),
);
$blocks['news'] = array(
'info' => t('Backdrop News'),
'description' => t('Displays a news feed from BackdropCMS.org.'),
'class' => 'DashboardNewsBlock',
'required contexts' => array('dashboard'),
);
$blocks['overview_content'] = array(
'info' => t('Dashboard - Content'),
'description' => t('Displays a summary of content statistics'),
'class' => 'DashboardOverviewContentBlock',
'required contexts' => array('dashboard'),
);
$blocks['overview_user'] = array(
'info' => t('Dashboard - User accounts'),
'description' => t('Displays a summary of user account statistics'),
'class' => 'DashboardOverviewUserBlock',
'required contexts' => array('dashboard'),
);
$blocks['updates'] = array(
'info' => t('Dashboard - Available updates'),
'description' => t('Displays a list of available updates for modules, themes, layouts, and Backdrop core.'),
'class' => 'DashboardUpdateBlock',
'required contexts' => array('dashboard'),
);
if (module_exists('taxonomy')) {
$blocks['taxonomy'] = array(
'info' => t('Dashboard - Categories'),
'description' => t('Provides links to manage taxonomy'),
'class' => 'DashboardTaxonomyBlock',
'required contexts' => array('dashboard'),
);
}
return $blocks;
}