function party_attached_entity_remove_confirm in Party 8.2
Same name and namespace in other branches
- 7 party.pages.inc \party_attached_entity_remove_confirm()
Form to confirm removing a data set from a party.
@todo: pass this the delta rather than the entity id.
1 string reference to 'party_attached_entity_remove_confirm'
- party_menu in ./
party.module - Implements hook_menu().
File
- ./
party.pages.inc, line 371 - party.pages.inc
Code
function party_attached_entity_remove_confirm($form, &$form_state, $party, $data_set, $eid) {
$data_set_controller = party_get_crm_controller($party, $data_set['set_name']);
$form['#party'] = $party;
$form['#data_set'] = $data_set_controller;
$form['#entity'] = reset(entity_load($data_set_controller
->getDataInfo('entity type'), array(
$eid,
)));
return confirm_form($form, t('Are you sure you want to remove %attached from %party?', array(
'%attached' => $data_set_controller
->getDataInfo('label'),
'%party' => $party->label,
)), 'party/' . $party->pid, t('Are you sure you want to remove this data set from this party?') . ' ' . t('This action cannot be undone.'), t('Remove'), t('Cancel'));
}