Projet

Général

Profil

Révision 2c8c2b87

Ajouté par Assos Assos il y a presque 9 ans

Weekly update of contrib modules

Voir les différences:

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
}

Formats disponibles : Unified diff