Projet

Général

Profil

Révision 2e0f6994

Ajouté par Assos Assos il y a environ 4 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/menu_attributes/menu_attributes.module
56 56
  $info['id'] = array(
57 57
    'label' => t('ID'),
58 58
    'description' => t('Specifies a unique ID for the link.'),
59
    'item_description' => t('Specifies a unique ID to be added to the item.'),
59 60
    'scope' => array(MENU_ATTRIBUTES_LINK, MENU_ATTRIBUTES_ITEM),
60 61
  );
61 62
  $info['name'] = array(
......
70 71
  $info['class'] = array(
71 72
    'label' => t('Classes'),
72 73
    'description' => t('Enter additional classes to be added to the link.'),
74
    'item_description' => t('Enter additional CSS class names to be added to the item.'),
73 75
    'scope' => array(MENU_ATTRIBUTES_LINK, MENU_ATTRIBUTES_ITEM),
74 76
  );
75 77
  $info['style'] = array(
76 78
    'label' => t('Style'),
77 79
    'description' => t('Enter additional styles to be applied to the link.'),
80
    'item_description' => t('Enter additional styles attribute to be applied to the item.'),
78 81
    'scope' => array(MENU_ATTRIBUTES_LINK, MENU_ATTRIBUTES_ITEM),
79 82
  );
80 83
  $info['target'] = array(
......
212 215
        // If this is an existing link, use the raw default (usually empty).
213 216
        $info['form']['#default_value'] = $info['default'];
214 217
      }
218

  
219
      // If the item description is set, override the form description.
220
      if ($group == MENU_ATTRIBUTES_ITEM && isset($info['item_description'])) {
221
        $info['form']['#description'] = $info['item_description'];
222
      }
223

  
215 224
      $form['options'][$group][$attribute] = $info['form'] + array(
216 225
        '#access' => $info['enabled'],
217 226
      );

Formats disponibles : Unified diff