Aggregator module blocks - add '1' to news item # array
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #189935. --> Reported by: [designguru](https://www.drupal.org/user/24498) >>> <p>When adding my facebook status feed to my personal site just now I realised that a coding oversight restricts the automatic blocks created for aggregated feeds to a minimum of 2 posts.</p> <p>Now, for something like showing your facebook status on a Drupal site, you probably only want to show one item - that being your latest status update, not the last 2 or 5 etc... So, you'll need to go to 'modules/aggregator' and edit your copy of the aggregator.module file.</p> <p>Look around line 269 for the following code - I've added a '1' to the array - this allows the aggregator blocks to offer you a display of just the most recent feed item.</p> <p><strong>Note</strong>: I found this issue with Drupal 5.1 - it may have been corrected since then...</p> <pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $form['block'] = array('#type' =&gt; 'select', '#title' =&gt; t('Number of news items in block'), '#default_value' =&gt; $value, '#options' =&gt; drupal_map_assoc(array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return $form;</pre>
issue