Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
provision
Commits
61236e8f
Commit
61236e8f
authored
Apr 17, 2009
by
Adrian Rossouw
Committed by
adrian
Apr 17, 2009
Browse files
initialize package arrays, save client email, load the right engine for packages
parent
11a43ae5
Changes
1
Hide whitespace changes
Inline
Side-by-side
platform/provision_drupal.drush.inc
View file @
61236e8f
...
...
@@ -81,6 +81,7 @@ function provision_drupal_drush_exit($url = NULL) {
if
(
drush_get_option
(
'installed'
))
{
drush_set_option
(
'site_url'
,
drush_get_option
(
'site_url'
),
'site'
);
drush_set_option
(
'site_id'
,
drush_get_option
(
'site_id'
),
'site'
);
drush_set_option
(
'client_email'
,
drush_get_option
(
'client_email'
),
'site'
);
provision_save_site_data
(
$url
);
}
}
...
...
@@ -388,7 +389,7 @@ require_once('cvs_deploy.inc');
function
provision_find_packages
()
{
// Load the version specific include files.
drush_include_engine
(
'drupal'
,
'packages'
);
drush_include_engine
(
'drupal'
,
'packages'
,
drush_drupal_major_version
()
);
$packages
[
'base'
]
=
_provision_find_packages
(
'base'
);
...
...
@@ -427,8 +428,10 @@ function _provision_find_platforms() {
* A small helper function to reduce code duplication
*/
function
_provision_find_packages
(
$scope
,
$key
=
''
)
{
$packages
=
array
();
$scope_text
=
(
$key
)
?
"
$scope
/
$key
"
:
$scope
;
foreach
(
array
(
'modules'
,
'themes'
)
as
$type
)
{
$packages
[
$type
]
=
array
();
$func
=
"_provision_drupal_find_
$type
"
;
$result
=
$func
(
$scope
,
$key
);
if
(
sizeof
(
$result
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment