function user_relationships_drush_command in User Relationships 7
Implements hook_drush_command().
File
- ./
user_relationships.drush.inc, line 11 - Generate relationships between site users for testing purposes.
Code
function user_relationships_drush_command() {
$items['generate-user-relationships'] = array(
'description' => dt('Generates user relationships.'),
'arguments' => array(
'number_relations' => dt('The number of relationships to generate.'),
),
'options' => array(
'types' => 'A comma delimited list of relationship types to create.',
'kill' => 'Delete all user relationships before generating new ones.',
'invoke' => 'Invoke the hook_user_relationships_save with given param',
),
'aliases' => array(
'genur',
),
);
return $items;
}