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.module
103 103
    'access arguments' => array('administer rules'),
104 104
    'file' => 'rules_scheduler.admin.inc',
105 105
  );
106
  $items[RULES_SCHEDULER_PATH .'/%rules_scheduler_task/delete'] = array(
106
  $items[RULES_SCHEDULER_PATH . '/%rules_scheduler_task/delete'] = array(
107 107
    'title' => 'Delete a scheduled task',
108 108
    'type' => MENU_CALLBACK,
109 109
    'page callback' => 'drupal_get_form',
......
115 115
}
116 116

  
117 117
/**
118
 * Load a task by a given task ID.
118
 * Loads a task by a given task ID.
119
 *
120
 * @param int $tid
121
 *   The task ID.
119 122
 */
120 123
function rules_scheduler_task_load($tid) {
121 124
  $result = db_select('rules_scheduler', 'r')
......
126 129
}
127 130

  
128 131
/**
129
 * Delete a task by a given task ID.
132
 * Deletes a task by a given task ID.
133
 *
134
 * @param int $tid
135
 *   The task ID.
130 136
 */
131 137
function rules_scheduler_task_delete($tid) {
132 138
  db_delete('rules_scheduler')
......
137 143
/**
138 144
 * Schedule a task to be executed later on.
139 145
 *
140
 * @param $task
146
 * @param array $task
141 147
 *   An array representing the task with the following keys:
142
 *   - config: The machine readable name of the to be scheduled component.
148
 *   - config: The machine readable name of the to-be-scheduled component.
143 149
 *   - date: Timestamp when the component should be executed.
144 150
 *   - state: (deprecated) Rules evaluation state to use for scheduling.
145 151
 *   - data: Any additional data to store with the task.
......
166 172
/**
167 173
 * Queue tasks that are ready for execution.
168 174
 *
169
 * @return boolean
170
 *   Returns TRUE if any queue items where created, otherwise FALSE.
175
 * @return bool
176
 *   TRUE if any queue items where created, otherwise FALSE.
171 177
 */
172 178
function rules_scheduler_queue_tasks() {
173 179
  $items_created = FALSE;
......
209 215
function rules_scheduler_views_api() {
210 216
  return array(
211 217
    'api' => '3.0-alpha1',
212
    'path' => drupal_get_path('module', 'rules_scheduler') .'/includes',
218
    'path' => drupal_get_path('module', 'rules_scheduler') . '/includes',
213 219
  );
214 220
}

Formats disponibles : Unified diff