You are here

function social_demo_drush_command in Open Social 8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_demo/social_demo.drush.inc \social_demo_drush_command()
  2. 8.2 modules/custom/social_demo/social_demo.drush.inc \social_demo_drush_command()
  3. 8.3 modules/custom/social_demo/social_demo.drush.inc \social_demo_drush_command()
  4. 8.4 modules/custom/social_demo/social_demo.drush.inc \social_demo_drush_command()
  5. 8.5 modules/custom/social_demo/social_demo.drush.inc \social_demo_drush_command()
  6. 8.6 modules/custom/social_demo/social_demo.drush.inc \social_demo_drush_command()
  7. 8.7 modules/custom/social_demo/social_demo.drush.inc \social_demo_drush_command()
  8. 8.8 modules/custom/social_demo/social_demo.drush.inc \social_demo_drush_command()
  9. 10.3.x modules/custom/social_demo/social_demo.drush.inc \social_demo_drush_command()
  10. 10.0.x modules/custom/social_demo/social_demo.drush.inc \social_demo_drush_command()
  11. 10.1.x modules/custom/social_demo/social_demo.drush.inc \social_demo_drush_command()
  12. 10.2.x modules/custom/social_demo/social_demo.drush.inc \social_demo_drush_command()

Implements hook_drush_command().

File

modules/custom/social_demo/social_demo.drush.inc, line 14
Contains social_demo.drush.inc.

Code

function social_demo_drush_command() {
  $items['demo-content-add'] = [
    'description' => dt('Create demo content.'),
    'arguments' => [
      'content_types' => dt('A space-separated list of content types.'),
    ],
    'options' => [
      'module' => dt('The module name that provides content data.'),
      'profile' => dt('The content profile to add.'),
    ],
    'required-arguments' => TRUE,
    'aliases' => [
      'dca',
    ],
  ];
  $items['demo-content-remove'] = [
    'description' => dt('Remove demo content.'),
    'arguments' => [
      'content_types' => dt('A space-separated list of content types.'),
    ],
    'options' => [
      'module' => dt('The module name that provides content data.'),
      'profile' => dt('The content profile to remove.'),
    ],
    'required-arguments' => TRUE,
    'aliases' => [
      'dcr',
    ],
  ];
  $items['social-demo-add'] = [
    'description' => dt('Add demo content.'),
    'arguments' => [
      'content_types' => dt('A space-separated list of content types.'),
    ],
    'options' => [
      'module' => dt('The module name that provides content data.'),
      'profile' => dt('The content profile to add.'),
    ],
    'examples' => [
      'drush social-demo-add user topic --profile=EEA' => dt('Generates demo content for users and topics from the EEA profile.'),
    ],
    'required-arguments' => 1,
    'aliases' => [
      'sda',
    ],
  ];
  $items['social-demo-remove'] = [
    'description' => dt('Remove demo content.'),
    'arguments' => [
      'content_types' => dt('A space-separated list of content types.'),
    ],
    'options' => [
      'module' => dt('The module name that provides content data.'),
      'profile' => dt('The content profile to remove.'),
    ],
    'examples' => [
      'drush social-demo-remove user topic --profile=EEA' => dt('Removes demo content for users and topics from the EEA profile.'),
    ],
    'required-arguments' => 1,
    'aliases' => [
      'sdr',
    ],
  ];
  return $items;
}