You are here

function footable_breakpoint_ctools_export_ui_form in FooTable 7.2

Define the preset add/edit form.

1 string reference to 'footable_breakpoint_ctools_export_ui_form'
footable_breakpoint.inc in plugins/export_ui/footable_breakpoint.inc

File

plugins/export_ui/footable_breakpoint.inc, line 32

Code

function footable_breakpoint_ctools_export_ui_form(&$form, &$form_state) {
  $form['info']['name']['#required'] = TRUE;
  $form['breakpoint'] = array(
    '#type' => 'textfield',
    '#title' => t('Breakpoint'),
    '#required' => TRUE,
    '#element_validate' => array(
      'element_validate_integer_positive',
    ),
    '#default_value' => !empty($form_state['item']->breakpoint) ? $form_state['item']->breakpoint : '',
    '#field_suffix' => 'px',
  );
}