Project

General

Profile

Revision 2c8c2b87

Added by Assos Assos about 9 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/addthis/addthis.api.php
55 55
    $markup['google_plusone']['#attributes']['g:plusone:size'] = 'small';
56 56
  }
57 57
}
58

  
59
/**
60
 * Implements hook_TYPE_alter().
61
 *
62
 * @param array $configuration.
63
 */
64
function hook_addthis_configuration($configuration) {
65

  
66
  if (isset($configuration['templates'])) {
67
    $configuration['templates']['twitter'] = 'Hello on twitter.';
68
  }
69

  
70
  if (isset($configuration['addthis_share'])) {
71
    // Alter the share variable used for the javascript.
72
  }
73
}

Also available in: Unified diff