Projet

Général

Profil

Révision 950416da

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/rules/rules_admin/rules_admin.inc
1 1
<?php
2 2

  
3 3
/**
4
 * @file Rules Admin UI
5
 *   Implements rule management and configuration screens.
4
 * @file
5
 * Implements rule management and configuration screens.
6 6
 */
7 7

  
8 8
/**
......
32 32
    $collapsed = FALSE;
33 33
  }
34 34
  $form['help'] = array(
35
    '#type' => 'markup',
36 35
    '#markup' => t('Reaction rules, listed below, react on selected events on the site. Each reaction rule may fire any number of <em>actions</em>, and may have any number of <em>conditions</em> that must be met for the actions to be executed. You can also set up <a href="@url1">components</a> – stand-alone sets of Rules configuration that can be used in Rules and other parts of your site. See <a href="@url2">the online documentation</a> for an introduction on how to use Rules.',
37 36
      array('@url1' => url('admin/config/workflow/rules/components'),
38 37
            '@url2' => rules_external_help('rules'))),
......
105 104
    $collapsed = FALSE;
106 105
  }
107 106
  $form['help'] = array(
108
    '#type' => 'markup',
109 107
    '#markup' => t('Components are stand-alone sets of Rules configuration that can be used by Rules and other modules on your site. Components are for example useful if you want to use the same conditions, actions or rules in multiple places, or call them from your custom module. You may also export each component separately. See <a href="@url">the online documentation</a> for more information about how to use components.',
110 108
      array('@url' => rules_external_help('components'))),
111 109
  );
......
162 160
      $pathauto_help = t("Note that Pathauto's URL path cleaning method can be configured at <a href='!url'>admin/config/search/path/settings</a>.", array('!url' => url('admin/config/search/path/settings')));
163 161
    }
164 162
    else {
165
      $pathauto_help = t('Install the <a href="http://drupal.org/project/pathauto">Pathauto module</a> in order to get a configurable URL path cleaning method.');
163
      $pathauto_help = t('Install the <a href="https://www.drupal.org/project/pathauto">Pathauto module</a> in order to get a configurable URL path cleaning method.');
166 164
    }
167 165

  
168 166
    $form['path']['rules_path_cleaning_callback'] = array(
......
192 190
  $form['debug']['rules_debug_log'] = array(
193 191
    '#type' => 'checkbox',
194 192
    '#title' => t('Log debug information to the system log'),
195
    '#default_value' => variable_get('rules_debug_log', 0),
193
    '#default_value' => variable_get('rules_debug_log', FALSE),
196 194
  );
197 195
  $form['debug']['rules_debug'] = array(
198 196
    '#type' => 'radios',
......
211 209
    '#states' => array(
212 210
      // Hide the regions settings when the debug log is disabled.
213 211
      'invisible' => array(
214
        'input[name="rules_debug"]' => array('value' => '0'),
212
        'input[name="rules_debug"]' => array('value' => 0),
215 213
      ),
216 214
    ),
217 215
  );
......
281 279
    rules_config_update_dirty_flag($rules_config, TRUE, TRUE);
282 280
    if ($rules_config->dirty) {
283 281
      $count++;
284
      $variables = array('%label' => $rules_config->label(), '%name' => $rules_config->name, '@plugin' => $rules_config->plugin(), '!uri'=> url(RulesPluginUI::path($rules_config->name)));
282
      $variables = array('%label' => $rules_config->label(), '%name' => $rules_config->name, '@plugin' => $rules_config->plugin(), '!uri' => url(RulesPluginUI::path($rules_config->name)));
285 283
      drupal_set_message(t('The @plugin <a href="!uri">%label (%name)</a> fails the integrity check and cannot be executed.', $variables), 'error');
286 284
    }
287 285

  

Formats disponibles : Unified diff