You are here

function opigno_lms_install_tasks in Opigno LMS 3.x

Same name and namespace in other branches
  1. 8.2 opigno_lms.profile \opigno_lms_install_tasks()
  2. 7 opigno_lms.profile \opigno_lms_install_tasks()

Implements hook_install_tasks().

File

./opigno_lms.profile, line 22
Enables modules and site configuration for a opigno_lms site installation.

Code

function opigno_lms_install_tasks(&$install_state) {
  $tasks = [
    'opigno_lms_dashboard_blocks_update' => [
      'display_name' => t('Dashboard blocks update'),
      'display' => FALSE,
      'type' => 'normal',
      'function' => 'opigno_dashboard_blocks_update',
    ],
    'opigno_lms_clear_cache' => [
      'display_name' => t('Clear cache'),
      'display' => FALSE,
      'type' => 'normal',
      'function' => 'opigno_lms_clear_cache',
    ],
  ];
  return $tasks;
}