Skip to content
Snippets Groups Projects
Commit 58aadd3c authored by kpaxman's avatar kpaxman
Browse files

Fix issue where some features are overridden after a clean install

parent 7aa725fa
No related branches found
No related tags found
No related merge requests found
name = uWaterloo Base Profile
description = uWaterloo base Installation Profile. Has options to install Main and FDSU sites.
version = 7.x-1.6.2-beta1
version = 7.x-1.6.2-beta2
core = 7.x
dependencies[] = block
......
......@@ -64,7 +64,15 @@ function uw_base_profile_install_tasks() {
* Task callback: installs the site controller.
*/
function uw_install_site_controller() {
$success = module_enable(array('features','uw_roles_fdsu','uw_site_fdsu'));
$success = module_enable(array('features','uw_roles_fdsu'));
if (!$success) {
return 'Could not enable features and roles, a module dependency was missing -- the function module_enable() returned FALSE';
}
//rebuild the roles so they exist when the other features are installed
features_rebuild(array('uw_roles_fdsu' => array('user_role')));
$success = module_enable(array('uw_site_fdsu'));
if (!$success) {
return 'Could not enable site controller, a module dependency was missing -- the function module_enable() returned FALSE';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment