Closed (won't fix)
Project:
Devel
Version:
5.x-0.2
Component:
devel_generate
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2008 at 00:37 UTC
Updated:
13 Jun 2008 at 03:54 UTC
If anyone is interested, here's code to implement hook_cron and autopopulate content based on cron
Put this function code in the bottom of devel_generate.module:
<?php
/**
* Implementation of hook_cron
* auto populate content via cron
*/
function devel_generate_cron(){
require_once('(/absolute/path/toyour/site)/sites/all/modules/devel/devel_generate.inc'); // change to full absolute path to your devel_generate.inc script for cron
/*
function parameters
devel_generate_content($number_of_nodes, $number_of_comments, $title_length, $delete_prev_content, array($node_types));
*/
devel_generate_content(500, 0, 12, FALSE, array('story'=>'story', 'page' => 0));
}
?>
DT
Comments
Comment #1
davidwhthomas commentedI'm test scaling a default D5 drupal install to one million nodes for work :-)
Comment #2
davidwhthomas commentedComment #3
moshe weitzman commentedwe now use batch api in devel_generate so the utility of this is mostly gone.