function social_install_tasks_alter in Open Social 8
Same name and namespace in other branches
- 8.9 social.profile \social_install_tasks_alter()
- 8.2 social.profile \social_install_tasks_alter()
- 8.3 social.profile \social_install_tasks_alter()
- 8.4 social.profile \social_install_tasks_alter()
- 8.5 social.profile \social_install_tasks_alter()
- 8.6 social.profile \social_install_tasks_alter()
- 8.7 social.profile \social_install_tasks_alter()
- 8.8 social.profile \social_install_tasks_alter()
- 10.3.x social.profile \social_install_tasks_alter()
- 10.0.x social.profile \social_install_tasks_alter()
- 10.1.x social.profile \social_install_tasks_alter()
- 10.2.x social.profile \social_install_tasks_alter()
Implements hook_install_tasks_alter().
Unfortunately we have to alter the verify requirements. This is because of https://www.drupal.org/node/1253774. The dependencies of dependencies are not tested. So adding requirements to our install profile hook_requirements will not work :(. Also take a look at install.inc function drupal_check_profile() it just checks for all the dependencies of our install profile from the info file. And no actually hook_requirements in there.
File
- ./
social.profile, line 47 - Enables modules and site configuration for a social site installation.
Code
function social_install_tasks_alter(&$tasks, $install_state) {
// Override the core install_verify_requirements task function.
$tasks['install_verify_requirements']['function'] = 'social_verify_custom_requirements';
// Override the core finished task function.
$tasks['install_finished']['function'] = 'social_install_finished';
}