| @@ 23-26 (lines=4) @@ | ||
| 20 | */ |
|
| 21 | function df_admin_enable_scenario($module) { |
|
| 22 | // If the scenario is already enabled, exit. |
|
| 23 | if (module_exists($module)) { |
|
| 24 | drupal_set_message(t('Scenario @module is already installed.', array('@module' => $module)), 'status'); |
|
| 25 | return FALSE; |
|
| 26 | } |
|
| 27 | ||
| 28 | // Check if it appears another scenario is installed. |
|
| 29 | if (variable_get('df_admin_installed_scenario', FALSE)) { |
|
| @@ 13-16 (lines=4) @@ | ||
| 10 | */ |
|
| 11 | function df_admin_enable_sub_scenario($module) { |
|
| 12 | // If the scenario is already enabled, exit. |
|
| 13 | if (module_exists($module)) { |
|
| 14 | drupal_set_message(t('Sub-scenario @module is already installed.', array('@module' => $module)), 'status'); |
|
| 15 | return FALSE; |
|
| 16 | } |
|
| 17 | ||
| 18 | // Load info file to grab base scenario. |
|
| 19 | if (!$info = drupal_parse_info_file(drupal_get_path('module', $module) . '/' . $module . '.info')) { |
|