You are here

function redhen_org_org_unarchive_form in RedHen CRM 7

Form callback: confirmation form for unarchiving an organization.

Parameters

$org: The org object to be activated.

See also

confirm_form()

1 string reference to 'redhen_org_org_unarchive_form'
redhen_org_menu in modules/redhen_org/redhen_org.module
Implements hook_menu().

File

modules/redhen_org/includes/redhen_org.forms.inc, line 177
Forms for creating, editing, and deleting organizations.

Code

function redhen_org_org_unarchive_form($form, &$form_state, $org) {
  $form_state['redhen_org'] = $org;
  $form['#submit'][] = 'redhen_org_org_unarchive_form_submit';
  $form = confirm_form($form, t('Are you sure you want to unarchive %label?', array(
    '%label' => $org
      ->label(),
  )), entity_uri('redhen_org', $org), '<p>' . t('Activate this organization.') . '</p>', t('Unarchive'), t('Cancel'), 'confirm');
  return $form;
}