Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge in fixes to openoutreach install profile.

  • Loading branch information...
commit 7501575a0ac50d0d7789520bdca180838bf5a60e 1 parent e6714d7
Nedjo Rogers authored
View
1  profiles/openoutreach/openoutreach.info
@@ -33,7 +33,6 @@ features[variable][] = "user_picture_style"
features[variable][] = "user_pictures"
features[variable][] = "user_register"
files[] = "openoutreach.profile"
-hidden = TRUE
name = "Open Outreach"
package = "Other"
php = "5.2.4"
View
17 profiles/openoutreach/openoutreach.profile
@@ -22,3 +22,20 @@ function openoutreach_modules_installed($modules) {
module_load_include('inc', 'openoutreach', 'openoutreach.module_batch');
openoutreach_module_batch($modules);
}
+
+/**
+ * Check that other install profiles are not present to ensure we don't collide with a
+ * similar form alter in their profile.
+ *
+ * Set Open Outreach as default install profile.
+ */
+if (!function_exists('system_form_install_select_profile_form_alter')) {
+ function system_form_install_select_profile_form_alter(&$form, $form_state) {
+ // Only set the value if Open Outreach is the only profile.
+ if (count($form['profile']) == 1) {
+ foreach($form['profile'] as $key => $element) {
+ $form['profile'][$key]['#value'] = 'openoutreach';
+ }
+ }
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.