You are here

function freelinking_wikipedia_settings in Freelinking 7.3

Same name and namespace in other branches
  1. 6.3 plugins/freelinking_wiki.inc \freelinking_wikipedia_settings()

Settings form for wikipedia plugin

Return value

array with form configuration

File

plugins/freelinking_wiki.inc, line 64
Wiki Plugins

Code

function freelinking_wikipedia_settings() {
  $form['freelinking_wikipedia_languagecode'] = array(
    '#title' => t('Language code'),
    '#type' => 'textfield',
    '#default_value' => variable_get('freelinking_wikipedia_languagecode', language_default('language')),
    '#description' => t('Enter the two-character language code to use for wikipedia links.'),
    '#size' => 2,
    '#maxlength' => 2,
    '#required' => TRUE,
  );
  return $form;
}