You are here

function push_notifications_drush_command in Push Notifications 8

Implements hook_drush_command().

File

./push_notifications.drush.inc, line 10
Contains the code to generate drush commands

Code

function push_notifications_drush_command() {
  $commands['clear-push-notifications'] = [
    'description' => 'This command will remove all push notifications and all push notifications tokens. This command is intendend for development.',
    'aliases' => [
      'clear-pn',
    ],
    'arguments' => [
      'target' => 'Specify if you want to remove everything, only the push notifications, or only the push notifications tokens',
    ],
    'examples' => [
      'drush clear-pn all' => 'Removes everything.',
      'drush clear-pn push-notification' => 'Removes all push notifications.',
      'drush clear-pn push-notifications-token' => 'Removes all push notifications tokens.',
    ],
  ];
  return $commands;
}