You are here

function chosen_variable_info in Chosen 7.2

Implements hook_variable_info().

File

./chosen.variable.inc, line 11
Definition of variables for Variable API module.

Code

function chosen_variable_info($options) {
  $variables['chosen_placeholder_text_multiple'] = array(
    'type' => 'string',
    'title' => t('Placeholder text of multiple selects'),
    'default' => 'Choose some options',
    'required' => TRUE,
    'group' => 'chosen',
    'localize' => TRUE,
  );
  $variables['chosen_placeholder_text_single'] = array(
    'type' => 'string',
    'title' => t('Placeholder text of single selects'),
    'default' => 'Choose an option',
    'required' => TRUE,
    'group' => 'chosen',
    'localize' => TRUE,
  );
  $variables['chosen_no_results_text'] = array(
    'type' => 'string',
    'title' => t('No results text'),
    'default' => 'No results match',
    'required' => TRUE,
    'group' => 'chosen',
    'localize' => TRUE,
  );
  return $variables;
}