You are here

function parser_simplepie_feedapi_settings_form in FeedAPI 6

Implementation of hook_feedapi_settings_form(). If a module provides parsers and processors it MUST evaluate the $type variable to return different forms for parsers and processors. There might be a better term for parsers and processors than $type.

File

parser_simplepie/parser_simplepie.module, line 73
Parse the incoming URL with SimplePie then provide a data structure of the feed

Code

function parser_simplepie_feedapi_settings_form($type) {
  $form = array();
  switch ($type) {
    case 'parsers':
      $form['cache_lifetime'] = array(
        '#type' => 'textfield',
        '#title' => t('Cache lifetime in seconds'),
        '#description' => t('Lower this value if you know that your feeds refresh more often and you don\'t want to miss items.'),
        '#default_value' => '3600',
      );
      break;
  }
  return $form;
}