You are here

function hook_mostpopular_addthis_service_options_alter in Drupal Most Popular 7

Defines hook_mostpopular_addthis_service_options_alter().

Alters the list a list of the available services for getting metrics from AddThis.com.

Parameters

array: An array of sharing services. Add your own options to this list. The key must match one of the service keys at http://www.addthis.com/services/list. The value is the name to display in the options drop-down.

1 invocation of hook_mostpopular_addthis_service_options_alter()
mostpopular_addthis_service_options in modules/mostpopular_addthis/mostpopular_addthis.module
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().

File

modules/mostpopular_addthis/mostpopular_addthis.api.inc, line 28
Defines the API to extend the Most Popular AddThis.com integration.

Code

function hook_mostpopular_addthis_service_options_alter(&$services) {
  $services['gmail'] = t('Gmail');

  // NOTE: You can aggregate several keys by separating them with commas.
  $services['email,mailto'] = t('Email');
  $services['facebook,facebook_like'] = t('Facebook');
}