function omega_tools_drush_command in Omega Tools 7.2
Same name and namespace in other branches
- 6 omega_tools.drush.inc \omega_tools_drush_command()
- 7 omega_tools.drush.inc \omega_tools_drush_command()
- 7.3 includes/omega_tools.drush.inc \omega_tools_drush_command()
Implementation of hook_drush_command().
File
- ./
omega_tools.drush.inc, line 20 - Drush sql commands
Code
function omega_tools_drush_command() {
$items['omega-subtheme'] = array(
'description' => 'Creates an Omega subtheme.',
'callback' => 'drush_omega_subtheme',
'examples' => array(
'drush omega-subtheme "Subtheme Name"' => 'Create an HTML5 Omega subtheme to the default sites/all/themes folder named subtheme_name.',
'drush omega-subtheme "Subtheme Name" html5' => 'Create an HTML5 Omega subtheme to the default sites/all/themes folder named subtheme_name.',
'drush omega-subtheme "Subtheme Name" xhtml' => 'Create an XHTML Omega subtheme to the default sites/all/themes folder named subtheme_name.',
'drush omega-subtheme "Subtheme Name" --destination=example.com' => 'Create an HTML5 Omega subtheme to sites/example.com/themes folder named subtheme_name.',
),
'arguments' => array(
'name' => 'The name of the subtheme to create.',
'type' => 'The type of subtheme to create. XHTML or HTML5 (default)',
),
'options' => array(
'--destination' => 'The site specific folder name in /sites where the information should be saved. /sites/all by default.',
),
);
return $items;
}