function relcontext_settings_form

1 string reference to 'relcontext_settings_form'
relcontext.inc in ctools_plugin_example/plugins/contexts/relcontext.inc
Sample ctools context type plugin that is used in this demo to create a relcontext from an existing simplecontext.

File

ctools_plugin_example/plugins/contexts/relcontext.inc, line 69

Code

function relcontext_settings_form($conf, $external = FALSE) {
  $form = array();
  $form['sample_relcontext_setting'] = array(
    '#type' => 'textfield',
    '#title' => t('Relcontext setting'),
    '#size' => 50,
    '#description' => t('Just an example setting.'),
    '#default_value' => !empty($conf['sample_relcontext_setting']) ? $conf['sample_relcontext_setting'] : '',
    '#prefix' => '<div class="clear-block no-float">',
    '#suffix' => '</div>',
  );
  return $form;
}