You are here

function oa_buttons_add_space_content_settings_form in Open Atrium Core 7.2

Provides the form for the widget.

1 string reference to 'oa_buttons_add_space_content_settings_form'
add_space_content.inc in modules/oa_buttons/plugins/content_types/add_space_content.inc

File

modules/oa_buttons/plugins/content_types/add_space_content.inc, line 86

Code

function oa_buttons_add_space_content_settings_form($form, &$form_state) {
  $conf = $form_state['conf'];
  $form['caption'] = array(
    '#title' => t('Button caption'),
    '#type' => 'textfield',
    '#default_value' => isset($conf['caption']) ? $conf['caption'] : t('Create Content'),
  );
  $form['btn_title'] = array(
    '#title' => t('Button title '),
    '#type' => 'textfield',
    '#default_value' => isset($conf['btn_title']) ? $conf['btn_title'] : t('Create Content'),
  );
  $form['icon'] = array(
    '#title' => t('Icon class'),
    '#type' => 'textfield',
    '#default_value' => !empty($conf['icon']) ? $conf['icon'] : '',
  );
  $form['btn_class'] = array(
    '#title' => t('Button class'),
    '#type' => 'textfield',
    '#default_value' => !empty($conf['btn_class']) ? $conf['btn_class'] : 'btn btn-inverse',
  );
  $form['direction'] = array(
    '#type' => 'select',
    '#title' => t('Direction'),
    '#options' => array(
      '' => t('Drop down'),
      'dropup' => t('Drop up'),
    ),
    '#default_value' => isset($conf['direction']) ? $conf['direction'] : '',
    '#description' => t('Controls whether menu expands downwards or upwards.  Default is drop down.'),
  );
  $form['caret'] = array(
    '#title' => t('Show caret'),
    '#type' => 'checkbox',
    '#default_value' => isset($conf['caret']) ? $conf['caret'] : TRUE,
  );
  return $form;
}