You are here

public function pm_handler_area_addcontent::options_form in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 includes/views/pm_handler_area_addcontent.inc \pm_handler_area_addcontent::options_form()
  2. 7.2 includes/views/pm_handler_area_addcontent.inc \pm_handler_area_addcontent::options_form()

Define options form.

Overrides views_handler_area::options_form

File

includes/views/pm_handler_area_addcontent.inc, line 31
Area handler for PM add content link.

Class

pm_handler_area_addcontent
Area handler for PM add content link.

Code

public function options_form(&$form, &$form_state) {
  $form['node_type'] = array(
    '#type' => 'select',
    '#title' => t('Content type'),
    '#options' => node_type_get_names(),
    '#default_value' => $this->options['node_type'],
  );
  $form['redirect'] = array(
    '#type' => 'checkbox',
    '#title' => t('Redirect'),
    '#description' => t('If checked, the user will be redirected back to this view after saving the new content.'),
    '#default_value' => $this->options['redirect'],
  );
}