function redhen_org_org_archive_form in RedHen CRM 7
Form callback: confirmation form for archiving an organization.
Parameters
$org: The organization object to be archived.
See also
1 string reference to 'redhen_org_org_archive_form'
- redhen_org_menu in modules/
redhen_org/ redhen_org.module - Implements hook_menu().
File
- modules/
redhen_org/ includes/ redhen_org.forms.inc, line 136 - Forms for creating, editing, and deleting organizations.
Code
function redhen_org_org_archive_form($form, &$form_state, $org) {
$form_state['redhen_org'] = $org;
$form['#submit'][] = 'redhen_org_org_archive_form_submit';
$form = confirm_form($form, t('Are you sure you want to archive %label?', array(
'%label' => $org->label,
)), entity_uri('redhen_org', $org), '<p>' . t('Archive this organization.') . '</p>', t('Archive'), t('Cancel'), 'confirm');
return $form;
}