You are here

function mobile_detect_drush_command in Mobile Detect 7

Implements hook_drush_command().

File

./mobile_detect.drush.inc, line 13
drush integration for mobile_detect.

Code

function mobile_detect_drush_command() {
  $items = array();
  $items['dl-mobile-detect'] = array(
    'description' => dt('Downloads the required Mobile_Detect.php library.'),
    'callback' => '_mobile_detect_drush_download',
    'options' => array(
      'git' => dt('Clone Mobile_Detect.php from GitHub instead of downloading.'),
    ),
  );
  return $items;
}