You are here

function sf_notifications_drush_command in Salesforce Suite 7.2

Implements hook_drush_command().

In this hook, you specify which commands your drush module makes available, what it does and description.

Notice how this structure closely resembles how you define menu hooks.

Return value

An associative array describing your command(s).

See also

drush_parse_command() for a list of recognized keys.

File

sf_notifications/sf_notifications.drush.inc, line 23
drush integration for apachesolr.

Code

function sf_notifications_drush_command() {
  $items = array();

  // the key in the $items array is the name of the command.
  $items['sf-process-notifications'] = array(
    // the name of the function implementing your command.
    'callback' => 'sf_notifications_drush_process_queue',
    // a short description of your command
    'description' => dt('Processes the sf_notifications queue.'),
  );
  return $items;
}