Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Issue forks
colorbox-3127345
Commits
5ff4bd04
Commit
5ff4bd04
authored
May 12, 2016
by
NickDickinsonWilde
Committed by
frjo
May 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2572961
by NickWilde: Drush automatic download of colorbox plugin on enable.
parent
d2d61ef9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
drush/colorbox.drush.inc
drush/colorbox.drush.inc
+7
-7
No files found.
drush/colorbox.drush.inc
View file @
5ff4bd04
...
...
@@ -63,14 +63,14 @@ function colorbox_drush_help($section) {
}
/**
* Implements drush_MODULE_p
ost
_pm_enable().
* Implements drush_MODULE_p
re
_pm_enable().
*/
//
function drush_colorbox_p
ost
_pm_enable() {
//
$modules =
func_get_args(
);
//
if (in_array('colorbox', $modules)) {
//
drush_colorbox_plugin();
//
}
//
}
function
drush_colorbox_p
re
_pm_enable
()
{
$modules
=
drush_get_context
(
'PM_ENABLE_MODULES'
);
if
(
in_array
(
'colorbox'
,
$modules
)
&&
!
drush_get_option
(
'skip'
)
)
{
drush_colorbox_plugin
();
}
}
/**
* Command to download the Colorbox plugin.
...
...
Write
Preview
Markdown
is supported
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