Skip to content

Commit dd1f03e

Browse files
committed
updated for new Types supported for Drupal
1 parent 6aac6a0 commit dd1f03e

File tree

3 files changed

+22
-14
lines changed

3 files changed

+22
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ is not needed to install packages with these frameworks:
4848
| Croogo | `croogo-plugin`<br>`croogo-theme`
4949
| DokuWiki | `dokuwiki-plugin`<br>`dokuwiki-template`
5050
| Dolibarr | `dolibarr-module`
51-
| Drupal | <b>`drupal-core`<br>`drupal-module`<br>`drupal-theme`</b><br>`drupal-library`<br>`drupal-profile`<br>`drupal-drush`
51+
| Drupal | **`drupal-core`<br>`drupal-module`<br>`drupal-theme`**<br>`drupal-library`<br>`drupal-profile`<br>`drupal-theme-engine`<br>`drupal-drush`<br>`drupal-custom-module`<br>`drupal-custom-theme`<br>`drupal-custom-profile`<br>`drupal-custom-theme-engine`
5252
| Elgg | `elgg-plugin`
5353
| FuelPHP v1.x | `fuel-module`<br>`fuel-package`<br/>`fuel-theme`
5454
| FuelPHP v2.x | `fuelphp-component`

src/Composer/Installers/DrupalInstaller.php

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@
33

44
class DrupalInstaller extends BaseInstaller
55
{
6-
protected $locations = array(
7-
'core' => 'core/',
8-
'module' => 'modules/{$name}/',
9-
'theme' => 'themes/{$name}/',
10-
'library' => 'libraries/{$name}/',
11-
'profile' => 'profiles/{$name}/',
12-
'drush' => 'drush/{$name}/',
13-
'custom-theme' => 'themes/custom/{$name}/',
14-
'custom-module' => 'modules/custom/{$name}',
15-
);
6+
protected $locations = array(
7+
'core' => 'core/',
8+
'drush' => 'drush/{$name}/',
9+
'module' => 'modules/contrib/{$name}/',
10+
'custom-module' => 'modules/custom/{$name}',
11+
'library' => 'libraries/{$name}/',
12+
'theme' => 'themes/contrib/{$name}/',
13+
'custom-theme' => 'themes/custom/{$name}/',
14+
'profile' => 'profiles/contrib/{$name}/',
15+
'custom-profile' => 'profiles/custom/{$name}/',
16+
'theme-engine' => 'themes/engines/contrib/{$name}/',
17+
'custom-theme-engine' => 'themes/engines/custom/{$name}/',
18+
);
1619
}

tests/Composer/Installers/Test/InstallerTest.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,15 @@ public function dataForTestInstallPath()
223223
array('dokuwiki-plugin', 'lib/plugins/someplugin/', 'author/someplugin'),
224224
array('dokuwiki-template', 'lib/tpl/sometemplate/', 'author/sometemplate'),
225225
array('dolibarr-module', 'htdocs/custom/my_module/', 'shama/my_module'),
226-
array('drupal-module', 'modules/my_module/', 'shama/my_module'),
227-
array('drupal-theme', 'themes/my_module/', 'shama/my_module'),
228-
array('drupal-profile', 'profiles/my_module/', 'shama/my_module'),
229226
array('drupal-drush', 'drush/my_module/', 'shama/my_module'),
227+
array('drupal-module', 'modules/contrib/my_module/', 'shama/my_module'),
228+
array('drupal-custom-module', 'modules/custom/my_module/', 'shama/my_module'),
229+
array('drupal-theme', 'themes/contrib/my_module/', 'shama/my_module'),
230+
array('drupal-custom-theme', 'themes/custom/my_module/', 'shama/my_module'),
231+
array('drupal-profile', 'profiles/contrib/my_module/', 'shama/my_module'),
232+
array('drupal-custom-profile', 'profiles/custom/my_module/', 'shama/my_module'),
233+
array('drupal-theme-engine', 'themes/engines/contrib/my_module/', 'shama/my_module'),
234+
array('drupal-custom-theme-engine', 'themes/engines/custom/my_module/', 'shama/my_module'),
230235
array('elgg-plugin', 'mod/sample_plugin/', 'test/sample_plugin'),
231236
array('fuel-module', 'fuel/app/modules/module/', 'fuel/module'),
232237
array('fuel-package', 'fuel/packages/orm/', 'fuel/orm'),

0 commit comments

Comments
 (0)