function drush_devel_generate_generate_taxonomy
Command callback. Generate a number of taxonomy.
File
-
./
devel_generate.drush.inc, line 81
Code
function drush_devel_generate_generate_taxonomy($num_vocab = NULL, $num_terms = NULL) {
if (drush_generate_is_number($num_vocab) == FALSE) {
drush_set_error('DEVEL_GENERATE_INVALID_VID', dt('Invalid vocabulary ID.'));
}
if (drush_generate_is_number($num_terms) == FALSE) {
drush_set_error('DEVEL_GENERATE_INVALID_NUM_TERMS', dt('Invalid number of terms.'));
}
drush_generate_include_devel();
drush_op('devel_generate_taxonomy_data', $num_vocab, $num_terms, '12', drush_get_option('kill'));
drush_log(dt('Generated @num_vocab vocabulary, @num_terms terms', array(
'@num_vocab' => $num_vocab,
'@num_terms' => $num_terms,
)), 'ok');
}