You are here

function party_devel_generate_parties_pre_party in Party 8.2

Same name and namespace in other branches
  1. 7 modules/party_devel/party_devel.module \party_devel_generate_parties_pre_party()

Pre-process the devel_generate_content_form request. This is needed so batch api can get the list of users once.

Parameters

$num: array of options obtained from devel_generate_parties_form.

2 calls to party_devel_generate_parties_pre_party()
party_devel_generate_batch_parties_pre_party in modules/party_devel/devel_generate_batch.inc
party_devel_generate_parties in modules/party_devel/devel_generate.inc
The main API function for creating parties

File

modules/party_devel/party_devel.module, line 71
Party Developer Tools

Code

function party_devel_generate_parties_pre_party(&$results) {
  module_load_include('inc', 'devel_generate');

  // Get user id.
  $users = devel_get_users();
  $users = array_merge($users, array(
    '0',
  ));
  $results['users'] = $users;
}