You are here

function hook_install_tasks in Apps 7

Add an apps install step to an installation profile.

Use this in your hook_install_tasks to add all the needed tasks for installing apps. Set the App Server key and any default selected apps.

Parameters

array $install_state: Install state to be passed to apps_profile_install_tasks().

Return value

array Containing needed tasks.

1 function implements hook_install_tasks()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

apps_profile_install_tasks in ./apps.profile.inc
Add install tasks to profile install tasks.

File

./apps.api.php, line 107
API documentation for the Apps module.

Code

function hook_install_tasks($install_state) {
  $tasks = array();
  require_once drupal_get_path('module', 'apps') . '/apps.profile.inc';
  $server = array(
    'title' => 'App Server Name',
    'machine name' => 'apps_server_machine_name',
    'default apps' => array(
      'app_machine_name_1',
      'app_machine_name_2',
    ),
    'required apps' => array(),
    'default content callback' => 'distro_default_content',
  );
  $tasks = $tasks + apps_profile_install_tasks($install_state, $server);
  return $tasks;
}