You are here

function easychart_admin in Easychart 7

Same name and namespace in other branches
  1. 7.2 easychart.module \easychart_admin()
1 string reference to 'easychart_admin'
easychart_menu in ./easychart.module

File

./easychart.module, line 372
Easy Chart module file.

Code

function easychart_admin($form, $form_state) {
  $form = array();
  $form['global_highchart_options'] = array(
    '#type' => 'textarea',
    '#title' => t('Global Options'),
    '#default_value' => variable_get('global_highchart_options', ""),
    '#description' => t("Global options for all charts on the website."),
    '#rows' => 15,
  );
  $form['unwanted_options'] = array(
    '#type' => 'textfield',
    '#title' => t('Unwanted Options'),
    '#default_value' => variable_get('unwanted_options', "global, lang, exporting, series, labels, navigation, loading, pane, plotOptions, xAxis-plotLines"),
    '#description' => t("The options that should not be configurable. Use a comma to separate the values."),
    '#required' => TRUE,
  );
  $form['unwanted_return_types'] = array(
    '#type' => 'textfield',
    '#title' => t('Unwanted Return Types'),
    '#default_value' => variable_get('unwanted_return_types', "Function, CSSObject, null"),
    '#description' => t("The return types that should not be used. Use a comma to separate the values."),
    '#required' => TRUE,
  );
  $form['options_step1'] = array(
    '#type' => 'textfield',
    '#title' => t('Options for Step 1'),
    '#default_value' => variable_get('options_step1', "chart--type"),
    '#description' => t("The options that appear in step 1 of the configuration form. Use a comma to separate the values."),
    '#required' => TRUE,
  );
  $form['options_step2'] = array(
    '#type' => 'textfield',
    '#title' => t('Options for Step 2'),
    '#default_value' => variable_get('options_step2', "title--text, chart--backgroundColor, subtitle--text, yAxis-title--text"),
    '#description' => t("The options that appear in step 2 of the configuration form. Use a comma to separate the values."),
    '#required' => TRUE,
  );
  $form['default_colors'] = array(
    '#type' => 'textfield',
    '#title' => t('Default colours'),
    '#default_value' => variable_get('default_colors', ""),
    '#description' => t("The default colours for all charts on this website. Use a comma to separate the values. Don't use quotes around the color values."),
  );
  return system_settings_form($form);
}