Skip to content
Snippets Groups Projects
Commit 6c881d9c authored by Angie Byron's avatar Angie Byron
Browse files

#606190 follow-up by rschwab, dww, Bojhan: Better workflow links in update manager.

parent 35a08a67
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -140,12 +140,13 @@ function authorize_access_allowed() { ...@@ -140,12 +140,13 @@ function authorize_access_allowed() {
if (is_array($results['tasks'])) { if (is_array($results['tasks'])) {
$links += $results['tasks']; $links += $results['tasks'];
} }
else {
$links = array_merge($links, array( $links = array_merge($links, array(
l(t('Administration pages'), 'admin'), l(t('Administration pages'), 'admin'),
l(t('Front page'), '<front>'), l(t('Front page'), '<front>'),
)); ));
}
$output .= theme('item_list', array('items' => $links, 'title' => t('Next steps'))); $output .= theme('item_list', array('items' => $links, 'title' => t('Next steps')));
} }
// If a batch is running, let it run. // If a batch is running, let it run.
......
...@@ -77,6 +77,7 @@ public function getSchemaUpdates() { ...@@ -77,6 +77,7 @@ public function getSchemaUpdates() {
public function postInstallTasks() { public function postInstallTasks() {
return array( return array(
l(t('Enable newly added modules'), 'admin/modules'), l(t('Enable newly added modules'), 'admin/modules'),
l(t('Administration pages'), 'admin'),
); );
} }
...@@ -146,6 +147,7 @@ public function postInstall() { ...@@ -146,6 +147,7 @@ public function postInstall() {
public function postInstallTasks() { public function postInstallTasks() {
return array( return array(
l(t('Set the !project theme as default', array('!project' => $this->title)), 'admin/appearance'), l(t('Set the !project theme as default', array('!project' => $this->title)), 'admin/appearance'),
l(t('Administration pages'), 'admin'),
); );
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment