You are here

function feedapi_aggregator_admin_settings in FeedAPI 5

Settins page

1 string reference to 'feedapi_aggregator_admin_settings'
feedapi_aggregator_menu in feedapi_aggregator/feedapi_aggregator.module
Implementation of hook_menu().

File

feedapi_aggregator/feedapi_aggregator.module, line 170

Code

function feedapi_aggregator_admin_settings() {
  $items = array(
    0 => t('none'),
  ) + drupal_map_assoc(array(
    3,
    5,
    10,
    15,
    20,
    25,
  ), '_feedapi_aggregator_items');
  $form['feedapi_aggregator_summary_items'] = array(
    '#type' => 'select',
    '#title' => t('Items shown in sources and categories pages'),
    '#default_value' => variable_get('feedapi_aggregator_summary_items', 3),
    '#options' => $items,
    '#description' => t('The number of items which will be shown with each feed or category in the feed and category summary pages.'),
  );
  return system_settings_form($form);
}