You are here

function _dfp_breakpoints_get_existing in Doubleclick for Publishers (DFP) 7.2

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

Returns the current breakpoints. The default value will be used unless an "input" exists in the form_state variable, in which case that will be used.

1 call to _dfp_breakpoints_get_existing()
dfp_tag_form in plugins/export_ui/dfp_ctools_export_ui.inc
Form builder; Create an ad tag.

File

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

Code

function _dfp_breakpoints_get_existing($form_state, $default = array()) {
  $breakpoints = array();
  if (isset($form_state['input']['breakpoints'])) {
    $breakpoints = $form_state['input']['breakpoints'];
  }
  elseif (!empty($default)) {
    $breakpoints = $default;
  }
  return $breakpoints;
}