Projet

Général

Profil

Révision 3dfa8105

Ajouté par Assos Assos il y a plus de 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/ds/modules/ds_ui/includes/ds.classes.inc
18 18
    '#description' => t('Configure CSS classes which you can add to regions on the "manage display" screens. Add multiple CSS classes line by line.<br />If you want to have a friendly name, separate class and friendly name by |, but this is not required. eg:<br /><em>class_name_1<br />class_name_2|Friendly name<br />class_name_3</em>')
19 19
  );
20 20

  
21
  if (module_exists('token')) {
22
    $tokens_mapping = token_get_entity_mapping();
23
    $tokens_list = array();
24
    foreach($tokens_mapping as $token_map => $entity_map) {
25
      $tokens_list[] = $token_map;
26
    }
27
    $form['token'] = array(
28
      '#type' => 'container',
29
      '#theme' => 'token_tree',
30
      '#token_types' => $tokens_list,
31
      '#dialog' => TRUE,
32
    );
33
  }
34

  
21 35
  $form['ds_classes_fields'] = array(
22 36
    '#type' => 'textarea',
23 37
    '#title' => t('CSS classes for fields'),

Formats disponibles : Unified diff