function drush_relation_generate in Relation 7
Same name and namespace in other branches
- 8.2 relation.drush.inc \drush_relation_generate()
- 8 relation.drush.inc \drush_relation_generate()
Drush callback to generate relations.
Parameters
$number_relations: Number of entities to generate of each entity_type.
File
- ./
relation.drush.inc, line 32 - Drush integration for the relation module.
Code
function drush_relation_generate($number_relations) {
$types = drush_get_option('types');
$types = $types ? explode(',', $types) : array();
$kill = drush_get_option('kill');
relation_generate_relations($number_relations, $types, $kill);
}