class PartyDefaultDataSetUIAttach in Party 8.2
Same name and namespace in other branches
- 7 includes/party.data_ui.inc \PartyDefaultDataSetUIAttach
The 'attach' action: attach an existing entity.
Hierarchy
- class \PartyDefaultDataSetUIAttach implements PartyDataSetActionInterface
Expanded class hierarchy of PartyDefaultDataSetUIAttach
File
- includes/
party.data_ui.inc, line 141 - Provides default classes for UI actions on data sets.
View source
class PartyDefaultDataSetUIAttach implements PartyDataSetActionInterface {
/**
* The page title for the action form.
*/
function get_page_title($party, $data_set, $eid = NULL) {
$data_set_controller = party_get_crm_controller($party, $data_set['set_name']);
return t("Attach existing @data-set-label to @party-label", array(
'@data-set-label' => $data_set_controller
->getDataInfo('label'),
'@party-label' => $party->label,
));
}
/**
* Provides the action form for attaching an existing entity.
*
* @param $party
* A loaded party object.
* @param $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.
* @param $eid
* The id of the entity, if relevant to this action.
*/
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;
}
function action_form_validate($form, &$form_state) {
}
function action_form_submit($form, &$form_state) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PartyDefaultDataSetUIAttach:: |
function |
Provides the action form for attaching an existing entity. Overrides PartyDataSetActionInterface:: |
1 | |
PartyDefaultDataSetUIAttach:: |
function |
Form submission for the action form. Overrides PartyDataSetActionInterface:: |
1 | |
PartyDefaultDataSetUIAttach:: |
function |
Form validation for the action form. Overrides PartyDataSetActionInterface:: |
1 | |
PartyDefaultDataSetUIAttach:: |
function |
The page title for the action form. Overrides PartyDataSetActionInterface:: |