You are here

public function sweaver_plugin_customcss::sweaver_form in Sweaver 6

Frontend form.

Overrides sweaver_plugin::sweaver_form

File

plugins/sweaver_plugin_customcss/sweaver_plugin_customcss.inc, line 12
Custom CSS plugin.

Class

sweaver_plugin_customcss
@file Custom CSS plugin.

Code

public function sweaver_form() {
  $current_style = Sweaver::get_instance()
    ->get_current_style();
  $form = array();
  $attributes = array();
  $form['sweaver_plugin_custom_css'] = array(
    '#type' => 'textarea',
    '#rows' => 10,
    '#cols' => 80,
    '#resizable' => FALSE,
    '#wysiwyg' => FALSE,
    '#attributes' => array(
      'class' => 'sweaver-400',
    ),
    '#default_value' => isset($current_style->customcss) ? $current_style->customcss : '',
    '#prefix' => '<div class="form-floater">',
  );
  $form['sweaver_plugin_custom_css_button'] = array(
    '#type' => 'button',
    '#value' => t('Apply'),
    '#suffix' => '</div>',
  );
  return $form;
}