Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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;
Comment | File | Size | Author |
---|---|---|---|
#2 | 2324027-1-devel-7.x-1.x-better-docbloc-documentation.patch | 856 bytes | alberto56 |
Comments
Comment #1
alberto56 CreditAttribution: alberto56 commentedComment #2
alberto56 CreditAttribution: alberto56 commentedHere is a patch
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commented