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_displays/addthis_displays.field.inc
49 49
        '#default_value' => $settings['share_services'],
50 50
        '#required' => TRUE,
51 51
        '#element_validate' => array('_addthis_display_element_validate_services'),
52
        '#description' => t('Specify the names of the sharing services and seperate them with a , (comma). <a href="http://www.addthis.com/services/list">The names on this list are valid.</a>'),
52
        '#description' =>
53
          t('Specify the names of the sharing services and seperate them with a , (comma). <a href="http://www.addthis.com/services/list" target="_blank">The names on this list are valid.</a>') . 
54
          t('Elements that are available but not ont the services list are (!services).',
55
            array('!services' => 'bubble_style, pill_style, tweet, facebook_send, twitter_follow_native, google_plusone, stumbleupon_badge, counter_* (several supported services), linkedin_counter')
56
        ),
53 57
      );
54 58
      $element['buttons_size'] = array(
55 59
        '#title' => t('Buttons size'),
......
110 114
  $services = trim($element['#value']);
111 115
  $services = str_replace(' ', '', $services);
112 116

  
113
  if (!preg_match('/^[a-z\_\,]+$/', $services)) {
117
  if (!preg_match('/^[a-z\_\,0-9]+$/', $services)) {
114 118
    $bad = TRUE;
115 119
  }
116 120
  // @todo Validate the service names against AddThis.com. Give a notice when there are bad names.

Formats disponibles : Unified diff