Drupal CRON for Drupal 5

PHP – Drupal – CRON file for Drupal 5. Mostly compatible for Drupal 6 & Drupal 7

Create Drupal cron file and use the module code in the CRON file.
Reference: http://drupal.org/node/236304

1. Include the “Pathauto” module path in the code. Pathauto reference: http://drupal.org/project/pathauto
2.In the below code, use this in root directory of drupal, “mymodule” is module name and ‘functionname’ is the module function name
Ex: customnews_display()

include_once ‘./includes/bootstrap.inc’;
include_once ‘./sites/all/modules/contrib/pathauto/pathauto.inc’;

Drupal_bootstrap: Connect to Drupal from an External PHP Script
For access to the Drupal database layer only:


For access to all modules and functions:



About selvam4win

I am Selvam. I am very jolly person and frank one.

Posted on July 13, 2012, in Drupal, PHP and tagged , , , . Bookmark the permalink. 2 Comments.

  1. Nice blog! Is your theme custom made or did you download it from somewhere?
    A design like yours with a few simple tweeks would really make my
    blog jump out. Please let me know where you
    got your design. With thanks

    • Hi. thanks for your comment.

      My blog theme is wordpress theme. Namely “Mystique”. Please check with this name and enjoy šŸ™‚

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: