You are here

function responsive_navigation_drush_command in Responsive Navigation 7

Implements hook_drush_command().

File

./responsive_navigation.drush.inc, line 13

Code

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

  // install plugin
  $items['rnjs-plugin'] = array(
    'callback' => 'drush_rnjs_plugin',
    'description' => dt("Downloads the responsive-nav.js plugin."),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
    // No bootstrap.
    'arguments' => array(
      'path' => dt('Optional. A path where to install the responsive-nav.js plugin. If omitted Drush will use the default location.'),
    ),
    'aliases' => array(
      'rnjsplugin',
    ),
  );

  // remove plugin
  $items['rm-rnjs-plugin'] = array(
    'callback' => 'drush_rmrnjs_plugin',
    'description' => dt("Deletes the responsive-nav.js plugin."),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUSH,
    // No bootstrap.
    'arguments' => array(
      'path' => dt('Optional. A path where to delete the responsive-nav.js plugin. If omitted Drush will use the default location.'),
    ),
    'aliases' => array(
      'rmrnjsplugin',
    ),
  );
  return $items;
}