You are here

function form_styler_get_default_options in jQuery form styler 7

Same name and namespace in other branches
  1. 7.2 form_styler.module \form_styler_get_default_options()

Implements hook_get_default_options().

2 calls to form_styler_get_default_options()
form_styler_admin_form in ./form_styler.module
Administration page callbacks for the form_styler module.
form_styler_form_alter in ./form_styler.module
Implements hook_form_alter().

File

./form_styler.module, line 306
Attach jQuery form styler plugin to selected forms.

Code

function form_styler_get_default_options() {

  // Create JavaScript settings options.
  // @todo allow to edit more options
  $defaultOptions = array(
    'filePlaceholder' => array(
      'default' => 'File not selected',
      'title' => t('File select placeholder'),
      'translatable' => TRUE,
    ),
    'fileBrowse' => array(
      'default' => 'Browse...',
      'title' => 'File browse button text',
      'translatable' => TRUE,
    ),
    'selectPlaceholder' => array(
      'default' => 'Select...',
      'title' => t('Select field placeholder'),
      'translatable' => TRUE,
    ),
    'selectSearch' => array(
      'default' => FALSE,
      'title' => t('Show search field'),
      'type' => 'checkbox',
    ),
    'selectSearchLimit' => array(
      'default' => 10,
      'title' => t('Options count for search'),
      'description' => t('Minimal options count for show search field in select box'),
      'related' => array(
        'field' => 'selectSearch',
        'condition' => array(
          'checked' => TRUE,
        ),
      ),
    ),
  );
  return $defaultOptions;
}