Same name and namespace in other branches
  1. 7.x developer/example.profile \example_profile_task_list()

Return a list of tasks that this profile supports.

Return value

A keyed array of tasks the profile will perform during the final stage. The keys of the array will be used internally, while the values will be displayed to the user in the installer task list.

File

developer/example.profile, line 61

Code

function example_profile_task_list() {
  return array(
    // Here we define names of the custom tasks we're about to perform,
    // so that these will be shown in the tasks list on the
    // installer UI. The keys may be anything (internal use only),
    // excepting the reserved tasks (as listed in install_reserved_tasks()
    // inside install.php). The strings may be translated with the st()
    // wrapper (translations provided in the install profile's .po file),
    // but sometimes there's no point in doing that, if the profile is
    // only focused to a single language. We only need to list tasks,
    // for which a page will be displayed; internally, unlisted keys
    // may be well used too. It's also possible to return dynamic data
    // here, adding/removing tasks on-the-fly depending on previous
    // steps.
    'task1' => st('Example question'),
    'task2' => st('Example summary'),
  );
}