You are here

function dfp_breakpoints_form_validate in Doubleclick for Publishers (DFP) 7.2

Same name and namespace in other branches
  1. 7 dfp.admin.inc \dfp_breakpoints_form_validate()

Validation function used by the breakpoints form.

1 string reference to 'dfp_breakpoints_form_validate'
_dfp_breakpoints_form in ./dfp.admin.inc
Helper form builder for the breakpoints form.

File

./dfp.admin.inc, line 515
Admin forms and functinality for DFP ads.

Code

function dfp_breakpoints_form_validate(&$element, &$form_state) {
  if ($form_state['triggering_element']['#value'] != t('Add another breakpoint')) {
    dfp_breakpoints_trim($form_state['values']);
  }
}