function drush_omega_subtheme in Omega Tools 6
Same name and namespace in other branches
- 7 omega_tools.drush.inc \drush_omega_subtheme()
- 7.2 omega_tools.drush.inc \drush_omega_subtheme()
1 string reference to 'drush_omega_subtheme'
- omega_tools_drush_command in ./
omega_tools.drush.inc - Implementation of hook_drush_command().
File
- ./
omega_tools.drush.inc, line 39 - Drush sql commands
Code
function drush_omega_subtheme() {
$args = func_get_args();
if (isset($args[0])) {
$name = $args[0];
$exec = drush_omega_tools_subtheme($name);
// Avoid the php memory of the $output array in drush_shell_exec().
if ($exec) {
$return = drush_op('system', $exec);
return $return;
}
}
else {
return drush_set_error(dt('You must delcare the name of the new subtheme'));
}
}