You are here

function farm_install_tasks in farmOS 2.x

Same name and namespace in other branches
  1. 7 farm.install \farm_install_tasks()

Implements hook_install_tasks().

File

./farm.install, line 25
Install, update and uninstall functions for the farmOS installation profile.

Code

function farm_install_tasks(&$install_state) {

  // Add tasks for enabling farmOS modules.
  $tasks = [
    '\\Drupal\\farm\\Form\\FarmModulesForm' => [
      'display_name' => t('Install modules'),
      'type' => 'form',
    ],
    'farm_install_modules' => [
      'type' => 'batch',
    ],
  ];
  return $tasks;
}