function simplecontext_settings_form

1 string reference to 'simplecontext_settings_form'
simplecontext.inc in ctools_plugin_example/plugins/contexts/simplecontext.inc
Sample ctools context type plugin that shows how to create a context from an arg.

File

ctools_plugin_example/plugins/contexts/simplecontext.inc, line 85

Code

function simplecontext_settings_form($conf, $external = FALSE) {
  if (empty($conf)) {
    $conf = array(
      'sample_simplecontext_setting' => 'default simplecontext setting',
    );
  }
  $form = array();
  $form['sample_simplecontext_setting'] = array(
    '#type' => 'textfield',
    '#title' => t('Setting for simplecontext'),
    '#size' => 50,
    '#description' => t('An example setting that could be used to configure a context'),
    '#default_value' => $conf['sample_simplecontext_setting'],
    '#prefix' => '<div class="clear-block no-float">',
    '#suffix' => '</div>',
  );
  return $form;
}