function PartyDefaultDataSetUIAttach::action_form in Party 7
Same name and namespace in other branches
- 8.2 includes/party.data_ui.inc \PartyDefaultDataSetUIAttach::action_form()
Provides the action form for attaching an existing entity.
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 PartyDataSetActionInterface::action_form
1 method overrides PartyDefaultDataSetUIAttach::action_form()
- PartyUserDataSetUIAttach::action_form in modules/
party_user/ includes/ party_user.data_ui.inc - Provides the action form for attaching an existing user.
File
- includes/
party.data_ui.inc, line 166 - Provides default classes for UI actions on data sets.
Class
- PartyDefaultDataSetUIAttach
- The 'attach' action: attach an existing entity.
Code
function action_form($form, &$form_state, $party, $data_set, $eid = NULL) {
$form = array();
drupal_set_message(t("This doesn't work for general entities yet!"), 'error');
return $form;
}