You are here

function drush_relation_generate in Relation 8

Same name and namespace in other branches
  1. 8.2 relation.drush.inc \drush_relation_generate()
  2. 7 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 35
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);
}