You are here

function google_analytics_et_admin_drush_command in Google Analytics Event Tracking 6

Same name and namespace in other branches
  1. 7 drush_commands/google_analytics_et_admin.drush.inc \google_analytics_et_admin_drush_command()

Implements hook_drush_command().

File

drush_commands/google_analytics_et_admin.drush.inc, line 28
Google Analytics Event Tracking Module Drush Admin.

Code

function google_analytics_et_admin_drush_command() {
  $items = array();
  $items['gaet-add-et'] = array(
    'description' => "adds an event tracking rule to the list.",
    'arguments' => array(
      'event' => 'The Javascript event that Google Analytics is supposed to track',
      'selector' => 'The CSS selector to use in the event tracking rule',
      'category' => 'The intended Category that Google is to file this event under.',
      'action' => 'The action the calls this event',
      'label' => 'Optional label for the event',
      'value' => 'Optional values (Integer)',
      'noninteraction' => 'Should this event be used in calculating the bounce rate (Bool)',
    ),
    'examples' => array(
      'drush addet "p" "body" "clicked" "somebody clicked a p body" 0 FALSE' => 'Add a comedac click event.',
    ),
    'aliases' => array(
      'addet',
    ),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
  );
  $items['gaet-delete-et'] = array(
    'description' => "deletes an event tracking rule from the list.",
    'examples' => array(
      'drush delet "p"' => 'remove all event tracking with "p" as the selector.',
    ),
    'aliases' => array(
      'delet',
    ),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
  );
  $items['gaet-override-et'] = array(
    'description' => "Toggels the override event tracking option.",
    'examples' => array(
      'drush oret' => 'Toggle the override event tracking option TRUE|FALSE. (if for some reason nothing is set, this sets it to true.)',
    ),
    'aliases' => array(
      'oret',
    ),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
  );
  $items['gaet-get-override-status'] = array(
    'description' => "Checks the status of the override event tracking option.",
    'examples' => array(
      'drush getet' => 'Returns TRUE|FALSE|"not set" depending on the override eventtracking status.',
    ),
    'aliases' => array(
      'getet',
    ),
    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
  );
  return $items;
}