I need to create a specific content, for instance, a Page, every 15 days.
Of course that goes into some cron job.
But how can I do that? Do I need to implement the hook_cron at my .module?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, hook_cron.
You have to use some condition to prevent this happening on every cron run. A date validation or something like that.
ex:
hook_cron(), node_save(), variable_set()/get are documented in api.drupal.org so I’m not gonna explain them much.