function devel_generate_content_pre_node
Same name in other branches
- 7.x-1.x devel_generate/devel_generate.inc \devel_generate_content_pre_node()
Pre-process the devel_generate_content_form request. This is needed so batch api can get the list of users once. This is used by both the batch and non-batch branches of the code.
Parameters
$num: array of options obtained from devel_generate_content_form.
2 calls to devel_generate_content_pre_node()
- devel_generate_batch_content_pre_node in ./
devel_generate_batch.inc - devel_generate_content in ./
devel_generate.inc - The main API function for creating content.
File
-
./
devel_generate.inc, line 445
Code
function devel_generate_content_pre_node(&$results) {
// Get user id.
$users = devel_get_users();
$users = array_merge($users, array(
'0',
));
$results['users'] = $users;
}