You are here

public function stylizer_ui::edit_form_type in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 stylizer/plugins/export_ui/stylizer_ui.class.php \stylizer_ui::edit_form_type()

File

stylizer/plugins/export_ui/stylizer_ui.class.php, line 269

Class

stylizer_ui
UI class for Stylizer.

Code

public function edit_form_type(&$form, &$form_state) {
  foreach ($this->base_types as $module => $info) {
    foreach ($info as $key => $base_type) {
      $types[$module . '-' . $key] = $base_type['title'];
    }
  }
  $form['type'] = array(
    '#type' => 'select',
    '#title' => t('Type'),
    '#options' => $types,
    '#default_value' => 'all',
    '#weight' => -10,
    '#attributes' => array(
      'class' => array(
        'ctools-auto-submit',
      ),
    ),
  );
}