1 update.php | update_helpful_links() |
Provides links to the homepage and administration pages.
File
- core/
update.php, line 175 - Administrative page for handling updates from one Backdrop version to another.
Code
function update_helpful_links() {
$links['front'] = array(
'title' => t('Home page'),
'href' => '<front>',
);
if (module_exists('dashboard') && user_access('access dashboard')) {
$links['dashboard'] = array(
'title' => t('Dashboard'),
'href' => 'admin/dashboard',
);
}
elseif (user_access('access administration pages')) {
$links['admin-pages'] = array(
'title' => t('Administration pages'),
'href' => 'admin',
);
}
if (user_access('administer site configuration')) {
$links['status-report'] = array(
'title' => t('Status report'),
'href' => 'admin/reports/status',
);
}
return $links;
}