Drupal Association members fund grants that make connections all over the world.
Hello all together!
I am using the module computed fields and with it I calculate the age and the next birthday in profile nodes on base of a date field birthday date.
Unfortunatly the values in the database are just recalculated when the node is updated/saved. I have to save them in the database because I need the computed fields in Views.
In the post http://drupal.org/node/313498 the idea came up to create a php script, which saves the relevant nodes, and to trigger it once a day by cron (which is often enough in this situation).
Do you have some ideas how I can create such a script?
I especially don't understand some things:
- How can Drupal functions in this standalone php script work, when it is called as a stand alonescript outside the Drupal framework?
- How can this script work, when just special users with a special role have the right to update this profile nodes? When this script is called e.g. with wget/curl I guess the active user would be the anonymous user "guest"?
So this not the question how to configure cron. But maybe you can give me some tipps or links how I get started with it ...
Thanks for your help in advance,