function ds_drush_command in Display Suite 7
Same name and namespace in other branches
- 8.2 drush/ds.drush.inc \ds_drush_command()
- 8.3 drush/ds.drush.inc \ds_drush_command()
- 7.2 drush/ds.drush.inc \ds_drush_command()
Implements hook_drush_command().
File
- ./
ds.drush.inc, line 11 - Display Suite drush integration.
Code
function ds_drush_command() {
$items = array();
$items['ds-build'] = array(
'description' => 'Create a basic template and configuration file for a new Display Suite layout.',
'arguments' => array(
'name' => 'Name for your layout.',
),
'options' => array(
'name' => 'Name for your layout.',
'regions' => 'Regions for your layout, comma-separated.',
'css' => 'Set this to true if you want to include a CSS file for your layout.',
'form' => 'Set this to true if you want to make this template available for forms.',
),
'examples' => array(
'drush ds-build "My layout name"' => 'Create a layout with a few example regions.',
'drush ds-build "My layout name" --regions="Region 1, Region 2"' => 'Create a layout with custom regions.',
'drush ds-build "My layout name" --css' => 'Create a layout with an included CSS file.',
),
);
return $items;
}