All pastes #2069658 Raw Edit

Stuff

public text v1 · immutable
#2069658 ·published 2011-05-26 21:28 UTC
rendered paste body
function cipartner_insuranceform_block06_validate($element, &$form_state, $form) {
        $form["#attributes"]["class"] = "submitted";
        if (!preg_match("/^[\d]+$/", $element['#value'])) {
                form_error($element, "Введите число в поле «Стоимость на момент страхования»");
        }
}