Projet

Général

Profil

Révision 76e2e7c3

Ajouté par Assos Assos il y a environ 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/flag/includes/flag.admin.inc
77 77

  
78 78
  foreach ($flags as $flag) {
79 79
    $ops = array(
80
      'flags_edit' =>  array('title' => t('edit'), 'href' => $flag->admin_path('edit')),
81
      'flags_fields' =>  array('title' => t('manage fields'), 'href' => $flag->admin_path('fields')),
82
      'flags_delete' =>  array('title' => t('delete'), 'href' => $flag->admin_path('delete')),
83
      'flags_export' =>  array('title' => t('export'), 'href' => $flag->admin_path('export')),
80
      'flags_edit' => array('title' => t('edit'), 'href' => $flag->admin_path('edit')),
81
      'flags_fields' => array('title' => t('manage fields'), 'href' => $flag->admin_path('fields')),
82
      'flags_delete' => array('title' => t('delete'), 'href' => $flag->admin_path('delete')),
83
      'flags_export' => array('title' => t('export'), 'href' => $flag->admin_path('export')),
84 84
    );
85 85
    if (!module_exists('field_ui')) {
86 86
      unset($ops['flags_fields']);
......
116 116
  if (count($flags) > 1) {
117 117
    $header[] = t('Weight');
118 118
  }
119
  $header = array_merge($header, array(t('Flag type'), t('Roles'), t('Entity bundles'), t('Global?'), t('Operations')));
119
  $header = array_merge($header, array(
120
    t('Flag type'),
121
    t('Roles'),
122
    t('Entity bundles'),
123
    t('Global?'),
124
    t('Operations'),
125
  ));
120 126
  $output .= theme('table', array(
121 127
    'header' => $header,
122 128
    'rows' => $rows,
......
142 148
      $ops = array();
143 149
      if (!$flag->is_compatible()) {
144 150
        $flag_updates_needed = TRUE;
145
        $ops['flags_update'] = array('title' => '<strong>' . t('update code') . '</strong>', 'href' => $flag->admin_path('update'), 'html' => TRUE);
151
        $ops['flags_update'] = array(
152
          'title' => '<strong>' . t('update code') . '</strong>',
153
          'href' => $flag->admin_path('update'),
154
          'html' => TRUE,
155
        );
146 156
      }
147 157
      else {
148 158
        $ops['flags_enable'] = array('title' => t('enable'), 'href' => $flag->admin_path('edit'));
......
163 173
  }
164 174

  
165 175
  if (!empty($rows)) {
166
    $header = array(t('Disabled Flags'), t('Module'), t('Flag type'), t('Operations'));
176
    $header = array(
177
      t('Disabled Flags'),
178
      t('Module'),
179
      t('Flag type'),
180
      t('Operations'),
181
    );
167 182
    $output .= theme('table', array('header' => $header, 'rows' => $rows));
168 183
  }
169 184

  
......
379 394
    '#title' => t('Token replacement'),
380 395
    '#type' => 'fieldset',
381 396
    '#description' =>
382
      '<p>' . t('The above six texts may contain any of the tokens listed below. For example, <em>"Flag link text"</em> could be entered as:') . '</p>' .
383
      theme('item_list', array(
384
        'items' => array(
385
          t('Add &lt;em&gt;[node:title]&lt;/em&gt; to your favorites'),
386
          t('Add this [node:type] to your favorites'),
387
          t('Vote for this proposal ([node:flag-vote-count] people have already done so)'),
388
        ),
389
        'attributes' => array('class' => 'token-examples'),
390
      )) .
391
      '<p>' . t('These tokens will be replaced with the appropriate fields from the node (or user, or comment).') . '</p>' .
392
      theme('flag_tokens_browser', array('types' => $flag->get_labels_token_types())),
397
    '<p>' . t('The above six texts may contain any of the tokens listed below. For example, <em>"Flag link text"</em> could be entered as:') . '</p>' .
398
    theme('item_list', array(
399
      'items' => array(
400
        t('Add &lt;em&gt;[node:title]&lt;/em&gt; to your favorites'),
401
        t('Add this [node:type] to your favorites'),
402
        t('Vote for this proposal ([node:flag-vote-count] people have already done so)'),
403
      ),
404
      'attributes' => array('class' => 'token-examples'),
405
    )) .
406
    '<p>' . t('These tokens will be replaced with the appropriate fields from the node (or user, or comment).') . '</p>' .
407
    theme('flag_tokens_browser', array('types' => $flag->get_labels_token_types())),
393 408
    '#collapsible' => TRUE,
394 409
    '#collapsed' => TRUE,
395 410
  );

Formats disponibles : Unified diff