You are here

function mostpopular_addthis_service_options in Drupal Most Popular 7

Returns a list of the available services for getting metrics from AddThis.com. You can alter this list by implementing hook_mostpopular_addthis_service_options_alter().

Return value

array An array of sharing services. Each value must match one of the service keys at http://www.addthis.com/services/list

1 call to mostpopular_addthis_service_options()
mostpopular_addthis_config_form in modules/mostpopular_addthis/mostpopular_addthis.module
Implements the 'config_form' callback for the AddThis.com service.

File

modules/mostpopular_addthis/mostpopular_addthis.module, line 164
Uses the AddThis.com Analytics API to provide Most Popular data.

Code

function mostpopular_addthis_service_options() {
  $services = array(
    'bitly' => t('Bit.ly'),
    'delicious' => t('Del.icio.us'),
    'digg' => t('Digg'),
    'email,mailto' => t('Email'),
    'facebook,facebook_like' => t('Facebook'),
    'google_plusone' => t('Google +1'),
    'kindleit' => t('Kindle It'),
    'print' => t('Print'),
    'reddit' => t('Reddit'),
    'twitter' => t('Twitter'),
  );
  drupal_alter('mostpopular_addthis_service_options', $services);
  asort($services);
  return $services;
}