function commerce_kickstart_install_tasks in Commerce Kickstart 7.2
Same name and namespace in other branches
- 7 commerce_kickstart.profile \commerce_kickstart_install_tasks()
Implements hook_install_tasks().
File
- ./
commerce_kickstart.install, line 11 - Installation code for Commerce Kickstart.
Code
function commerce_kickstart_install_tasks() {
// Increase maximum function nesting level to prevent install errors.
$max_nesting_level = ini_get('xdebug.max_nesting_level');
if ($max_nesting_level > 0 && $max_nesting_level <= '200') {
ini_set('xdebug.max_nesting_level', 200);
}
// Remove any status messages that might have been set. They are unneeded.
drupal_get_messages('status', TRUE);
$tasks = array();
$current_task = variable_get('install_task', 'done');
$install_demo_store = variable_get('commerce_kickstart_demo_store', FALSE);
$tasks['commerce_kickstart_configure_store_form'] = array(
'display_name' => st('Configure store'),
'type' => 'form',
);
$tasks['commerce_kickstart_install_additional_modules'] = array(
'display_name' => $install_demo_store ? st('Install demo store') : st('Install additional functionality'),
'type' => 'batch',
// Show this task only after the Kickstart steps have been reached.
'display' => strpos($current_task, 'commerce_kickstart_') !== FALSE,
);
$tasks['commerce_kickstart_import_content'] = array(
'display_name' => st('Import content'),
'type' => 'batch',
// Show this task only after the Kickstart steps have been reached.
'display' => strpos($current_task, 'commerce_kickstart_') !== FALSE,
);
return $tasks;
}