function 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

external_documentation/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'),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.