Hi gang

I have an aggregator running on Wordpress, it's made of parts and bits but it works fine.

One good thing about the Plugin I use is that it aggregates the content into categories and POSTs that can be archieved.

I've set up a drupal install and the aggregator had a "discard items older than 16 weeks" ..
That's not fine at all with me since I need to get older items : my keywords do not bring new content every second and most items are papers, published throughout 2009 or regulations or programmes launched in 2008.
Is there a way to modify that setting?

Thanks

Comments

mattbaya’s picture

I needed to do this do so I edited /modules/aggregator]/aggregator.admin.inc and found this section:

function aggregator_admin_settings() {
  $items = array(0 => t('none')) + drupal_map_assoc(array(3, 5, 10, 15, 20, 25), '_aggregator_items');  
  $period = drupal_map_assoc(array(3600, 10800, 21600, 32400, 43200, 86400, 172800, 259200, 604800, 1209600, 2419200, 4838400, 9676800), 'format_interval');

and changed it to

function aggregator_admin_settings() {
  $items = array(0 => t('none')) + drupal_map_assoc(array(3, 5, 10, 15, 20, 25), '_aggregator_items');    
$period = drupal_map_assoc(array(3600, 10800, 21600, 32400, 43200, 86400, 172800, 259200, 604800, 1209600, 31536000, 157680000, 315360000), 'format_interval')

This made the last 3 options 1 year, 5 years and 10 years

Of course since this module is under just /modules instead of /sites/all/modules these changes will get reset on the next drupal update so I'll need to start keeping a list of manual changes like this.