You are here

function dfp_dfp_pane_content_type_edit_form in Doubleclick for Publishers (DFP) 7.2

Same name and namespace in other branches
  1. 7 plugins/content_types/dfp_pane.inc \dfp_dfp_pane_content_type_edit_form()

Returns an edit form for the custom type.

1 string reference to 'dfp_dfp_pane_content_type_edit_form'
dfp_pane.inc in plugins/content_types/dfp_pane.inc
The 'DFP Panel' custom content type.

File

plugins/content_types/dfp_pane.inc, line 41
The 'DFP Panel' custom content type.

Code

function dfp_dfp_pane_content_type_edit_form($form, &$form_state) {
  $tags = dfp_tag_load_all();
  $tag_options = array();
  foreach ($tags as $tag) {
    $tag_options[$tag->machinename] = $tag->slot;
  }
  $form['dfp_ads'] = array(
    '#type' => 'checkboxes',
    '#options' => $tag_options,
    '#default_value' => $form_state['conf']['dfp_ads'],
    '#title' => t('Choose the ad slots to show in this location.'),
  );
  return $form;
}