The function currently is documented as:

/**
 * Create one node. Used by both batch and non-batch code branches.
 *
 * @param $num
 *   array of options obtained from devel_generate_content_form.
 */
function devel_generate_content_add_node(&$results) {
  $node = new stdClass();
  $node->nid = NULL;

and should be documented as:

/**
 * Create one node. Used by both batch and non-batch code branches.
 *
 * @param $results
 *   array of options obtained from devel_generate_content_form. If you call
 *   this function directly, $results should contain at the very least:
 *     node_types => an associative array of node type machine names
 *     users => an array of UIDs
 *     title_length => max number of words in titles, for example 4.
 */
function devel_generate_content_add_node(&$results) {
  $node = new stdClass();
  $node->nid = NULL;
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alberto56’s picture

Issue summary: View changes
alberto56’s picture

Status: Active » Needs review
FileSize
856 bytes

Here is a patch

moshe weitzman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.