function feedapi_feedapi_settings_form in FeedAPI 5
Same name and namespace in other branches
- 6 feedapi.module \feedapi_feedapi_settings_form()
Implementation of hook_feedapi_settings_form().
File
- ./
feedapi.module, line 575 - Handle the submodules (for feed and item processing) Provide a basic management of feeds
Code
function feedapi_feedapi_settings_form($type) {
if ($type == 'general') {
$form['refresh_on_create'] = array(
'#type' => 'checkbox',
'#title' => t('Refresh feed on creation'),
'#description' => t('If checked, feed items will be processed immediately after a feed is created.'),
'#default_value' => 0,
);
$form['update_existing'] = array(
'#type' => 'checkbox',
'#title' => t('Update existing feed items'),
'#description' => t('If checked, existing feed items will be updated when feed is refreshed.'),
'#default_value' => 1,
);
$form['skip'] = array(
'#type' => 'checkbox',
'#title' => t('Pause automatic feed update'),
'#description' => t('If checked, feed will not be updated automatically on cron.'),
'#default_value' => 0,
);
$period = drupal_map_assoc(array(
3600,
10800,
21600,
32400,
43200,
86400,
172800,
259200,
604800,
1209600,
2419200,
3628800,
4838400,
7257600,
15724800,
31536000,
), 'format_interval');
$period[FEEDAPI_NEVER_DELETE_OLD] = t('Never');
$form['items_delete'] = array(
'#type' => 'select',
'#title' => t('Delete news items older than'),
'#options' => $period,
'#default_value' => FEEDAPI_NEVER_DELETE_OLD,
);
}
return $form;
}