function 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',
            ),
        ),
    );
}