function PartyUserDataSetUIAdd::action_form in Party 8.2
Same name and namespace in other branches
- 7 modules/party_user/includes/party_user.data_ui.inc \PartyUserDataSetUIAdd::action_form()
Provides the action form for attaching an existing user.
Parameters
$party: A loaded party object.
$data_set: A loaded data set. We don't actually need this loaded, but we need a menu loader to convert the path-style string to the machine name, and a menu loader that doesn't load would be weird too.
$eid: The id of the entity, if relevant to this action.
Overrides PartyDefaultDataSetUIAdd::action_form
File
- modules/
party_user/ includes/ party_user.data_ui.inc, line 86 - Provides classes for UI actions on the user data set.
Class
- PartyUserDataSetUIAdd
- The 'add' action: add a new user.
Code
function action_form($form, &$form_state, $party, $data_set, $eid = NULL) {
module_load_include('inc', 'user', 'user.pages');
$form = user_register_form($form, $form_state);
return $form;
}