I would like to add functionality to create some user-configurable variables to be used throughout the site, something like what's there in Site Configuration->Site Information menu.

For instance, I would like to add a variable to store number of most recent articles to be appeared on the home page and a user can configure it to any number like 3 or 5...etc And I am able to access this value in my templates.

Thanks.

Comments

WorldFallz’s picture

Drupal has a variables table with api functions to manipulate it. Also, the http://drupal.org/project/token_custom module might be worth a look.

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

arnoldc’s picture

Thx, WorldFallz. I have just updated the module to work in D6.

WorldFallz’s picture

awesome-- and kudos on the update!

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz