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_scheduler/rules_scheduler.admin.inc
9 9
 * Schedule page with a view for the scheduled tasks.
10 10
 */
11 11
function rules_scheduler_schedule_page() {
12
  // Display view for all scheduled tasks
12
  // Display view for all scheduled tasks.
13 13
  if (module_exists('views')) {
14 14
    // We cannot use views_embed_view() here as we need to set the path for the
15 15
    // component filter form.
......
18 18
    $task_list = $view->preview();
19 19
  }
20 20
  else {
21
    $task_list = t('To display scheduled tasks you have to install the <a href="http://drupal.org/project/views">Views</a> module.');
21
    $task_list = t('To display scheduled tasks you have to install the <a href="https://www.drupal.org/project/views">Views</a> module.');
22 22
  }
23 23
  $page['task_view'] = array(
24 24
    '#markup' => $task_list,
......
44 44
  $form['delete_by_config'] = array(
45 45
    '#type' => 'fieldset',
46 46
    '#title' => t('Delete tasks by component name'),
47
    '#disabled' => empty($config_options)
47
    '#disabled' => empty($config_options),
48 48
  );
49 49
  $form['delete_by_config']['config'] = array(
50 50
    '#title' => t('Component'),
......
57 57
    '#type' => 'submit',
58 58
    '#value' => t('Delete tasks'),
59 59
    '#submit' => array('rules_scheduler_form_delete_by_config_submit'),
60
    );
60
  );
61 61
  return $form;
62 62
}
63 63

  
......
90 90
  else {
91 91
    $msg = t('This task executes component %label and will be executed on %date. The action cannot be undone.', array(
92 92
      '%label' => $config->label(),
93
      '%id' => $task['identifier'],
94 93
      '%date' => format_date($task['date']),
95 94
    ));
96 95
  }
......
116 115
    $form_state['component'] = $rules_config->name;
117 116
    $action = rules_action('schedule', array('component' => $rules_config->name));
118 117
    $action->form($form, $form_state);
119
    // The component should be fixed, so hide the paramter for it.
118
    // The component should be fixed, so hide the parameter for it.
120 119
    $form['parameter']['component']['#access'] = FALSE;
121 120
    $form['submit'] = array(
122 121
      '#type' => 'submit',

Formats disponibles : Unified diff