You are here

function fb_autopost_drush_command in Facebook Autopost 7

Implements hook_drush_command().

File

./fb_autopost.drush.inc, line 17
drush integration for Facebook Autopost.

Code

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

  // The key in the $items array is the name of the command.
  $items['download-facebook-php-sdk'] = array(
    'callback' => 'drush_facebook_php_sdk',
    'description' => dt('Download and install the Facebook PHP SDK library.'),
    // No bootstrap.
    'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
    'arguments' => array(
      'path' => dt('Optional. A path where to install the Facebook PHP SDK library. If omitted Drush will use the default location.'),
    ),
    'aliases' => array(
      'dl-fbsdk',
    ),
  );
  return $items;
}