You are here

function ctools_context_string_settings_form in Chaos Tool Suite (ctools) 7

String settings form.

1 string reference to 'ctools_context_string_settings_form'
string.inc in plugins/contexts/string.inc
Plugin to provide a string context.

File

plugins/contexts/string.inc, line 74
Plugin to provide a string context.

Code

function ctools_context_string_settings_form($form, &$form_state) {
  $conf =& $form_state['conf'];
  $form['string'] = array(
    '#title' => t('Enter the string'),
    '#type' => 'textfield',
    '#maxlength' => 512,
    '#weight' => -10,
    '#default_value' => $conf['string'],
  );
  return $form;
}