Commit 6c881d9c authored by webchick's avatar webchick

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

parent 35a08a67
...@@ -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'),
); );
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment