i can do that but i need to modify modules/system/system.admin.inc[1], so everytime i update drupal i need to change that file manually again

ref:
in drupal 6: edit file modules/system/system.module see: http://pengyou.rijiben.org/node/2428
in drupal 5: http://drupal.org/node/164298#comment-262529
in drupal 4.7: http://drupal.org/node/57569#comment-206414

Comments

Zohar.Babin’s picture

why don't you just use hook_form_alter ?

I created a small module which holds the following function:

function mymodule_form_alter(&$form, $form_state, $form_id) {
  if ($form_id =='system_rss_feeds_settings') {
    $form['feed_default_items']['#options'] = drupal_map_assoc(array(50,90,120));
  }
}

and that does the trick... it changes the list from the default array of options to a new array (50,90,120)
and after saving configuration, the database is updated with the correct value. I think that should work...

Gonen
Kaltura - Open Source Video Platform

404’s picture

thank you! that's very helpful!