From 884f206f6f9aff749b69a148ce1a3a366a55c3b0 Sun, 24 Feb 2013 01:04:47 +0100 From: hass Date: Sun, 24 Feb 2013 01:04:17 +0100 Subject: [PATCH] Issue 1394322 by hass: Project need to enable Views on upgrades diff --git a/project.install b/project.install index b666266..7f6c526 100644 --- a/project.install +++ b/project.install @@ -144,6 +144,13 @@ * Delete variables that are no longer used in the Drupal 6 version of the module. */ function project_update_6000() { + // Views is a required module in D6 and may not installed in D5. If views is + // not enabled here, the modules page has a greyed out checkbox and does not + // allow enabling of the views module. + if (!module_exists('views')) { + module_enable(array('views')); + } + $variables = array( 'project_browse_nodes', 'project_sort_method',