Projet

Général

Profil

Révision 01f36513

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform/components/time.inc
304 304
}
305 305

  
306 306
/**
307
 *
307
 * Validate that the time data is valid, calling form_error() if not.
308 308
 */
309 309
function webform_validate_time($element, $form_state) {
310 310
  // Check if the user filled the required fields.
......
495 495
/**
496 496
 * Convert a time between a 24-hour and a 12-hour value.
497 497
 *
498
 * @param $array
498
 * @param array $array
499 499
 *   An array of hour, minute, second, and optionally ampm.
500
 * @param $format
500
 * @param string $format
501 501
 *   Either 12-hour or 24-hour.
502 502
 *
503
 * @return
503
 * @return array
504 504
 *   An array with hour, minute, second, and ampm (if using "12-hour").
505 505
 */
506 506
function webform_time_convert($array, $format) {

Formats disponibles : Unified diff