You are here

function panopoly_news_configure_form in Panopoly News 7

Config form for Panopoly News

1 string reference to 'panopoly_news_configure_form'
panopoly_news_apps_app_info in ./panopoly_news.module
Implementation of hook_apps_app_info()

File

./panopoly_news.module, line 24

Code

function panopoly_news_configure_form($form, &$form_state) {
  $form = array();

  // This is currently just to test the apps config integration
  $form['panopoly_news_config_group'] = array(
    '#type' => 'fieldset',
    '#title' => "Configuration Options for Panopoly News",
  );
  $form['panopoly_news_config_group']['panopoly_news_test'] = array(
    '#title' => t('Trivia'),
    '#type' => 'select',
    '#required' => TRUE,
    '#options' => array(
      '1' => 'Mark Antony',
      '0' => 'Mark Anthony',
    ),
    '#default_value' => variable_get('panopoly_news_test', FALSE) ? '1' : '0',
    '#description' => t('Which Mark is superior?'),
  );
  return system_settings_form($form);
}