function devel_generate_drush_command in Devel 6
Same name and namespace in other branches
- 8.3 devel_generate/drush/devel_generate.drush8.inc \devel_generate_drush_command()
- 8 devel_generate/drush/devel_generate.drush8.inc \devel_generate_drush_command()
- 8.2 devel_generate/drush/devel_generate.drush8.inc \devel_generate_drush_command()
- 7 devel_generate/devel_generate.drush.inc \devel_generate_drush_command()
Implementation of hook_drush_command().
File
- ./
devel_generate.drush.inc, line 25 - Generate content, taxonomy, and users via drush framework.
Code
function devel_generate_drush_command() {
$items['generate-users'] = array(
'description' => 'Creates users.',
'arguments' => array(
'num_users' => 'Number of users to generate.',
),
'options' => array(
'kill' => 'Delete all users before generating new ones.',
),
'aliases' => array(
'genu',
),
);
$items['generate-taxonomy'] = array(
'description' => 'Creates taxonomy.',
'arguments' => array(
'vid' => 'Vocabulary ID into which new terms will be inserted.',
'num_terms' => 'Number of terms to generate',
),
'options' => array(
'kill' => 'Delete all terms in specified vocab before generating.',
),
'aliases' => array(
'gent',
),
);
$items['generate-content'] = array(
'description' => 'Creates content.',
'drupal dependencies' => array(
'devel_generate',
),
'arguments' => array(
'num_nodes' => 'Number of nodes to generate.',
'max_comments' => 'Maximum number of comments to generate.',
),
'options' => array(
'kill' => 'Delete all content before generating new content.',
'add-terms' => 'Add terms to generated nodes.',
'add-upload' => 'Add an attached file to generated nodes.',
'types' => 'Specify which types of nodes to generate. Should be a comma-separated list.',
'languages' => 'A comma-separated list of language codes',
),
'aliases' => array(
'genc',
),
);
return $items;
}