Révision 01f36513
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/webform/components/email.inc | ||
---|---|---|
240 | 240 |
} |
241 | 241 |
|
242 | 242 |
/** |
243 |
* A Drupal Form API Validation function. Validates the entered values from |
|
244 |
* email components on the client-side form. |
|
243 |
* A Drupal Form API Validation function. |
|
244 |
* |
|
245 |
* Validates the entered values from email components on the client-side form. |
|
246 |
* Calls a form_set_error if the e-mail is not valid. |
|
245 | 247 |
* |
246 | 248 |
* @param $form_element |
247 | 249 |
* The e-mail form element. |
248 | 250 |
* @param $form_state |
249 | 251 |
* The full form state for the webform. |
250 |
* |
|
251 |
* @return |
|
252 |
* None. Calls a form_set_error if the e-mail is not valid. |
|
253 | 252 |
*/ |
254 | 253 |
function _webform_validate_email($form_element, &$form_state) { |
255 | 254 |
$component = $form_element['#webform_component']; |
... | ... | |
322 | 321 |
$rows[0] = array(t('Left Blank'), ($submissions - $nonblanks)); |
323 | 322 |
$rows[1] = array(t('User entered value'), $nonblanks); |
324 | 323 |
|
325 |
$other[0] = array(t('Average submission length in words (ex blanks)'), ($nonblanks != 0 ? number_format($wordcount / $nonblanks, 2) : '0')); |
|
324 |
$other[0] = array( |
|
325 |
t('Average submission length in words (ex blanks)'), |
|
326 |
($nonblanks != 0 ? number_format($wordcount / $nonblanks, 2) : '0'), |
|
327 |
); |
|
326 | 328 |
|
327 | 329 |
return array( |
328 | 330 |
'table_rows' => $rows, |
329 | 331 |
'other_data' => $other, |
330 | 332 |
); |
331 |
|
|
332 | 333 |
} |
333 | 334 |
|
334 | 335 |
/** |
Formats disponibles : Unified diff
Weekly update of contrib modules