You are here

function ad_owner_remove_form in Advertisement 6.3

Same name and namespace in other branches
  1. 6 owners/ad_owners.module \ad_owner_remove_form()
  2. 6.2 owners/ad_owners.module \ad_owner_remove_form()
  3. 7 owners/ad_owners.module \ad_owner_remove_form()

Removes ad owner from an ad.

1 string reference to 'ad_owner_remove_form'
ad_owners_menu in owners/ad_owners.module
Implementation of hook_menu().

File

owners/ad_owners.module, line 422
Enhances the ad module to support ad owners.

Code

function ad_owner_remove_form($form_state, $node, $owner) {
  $form['aid'] = array(
    '#type' => 'value',
    '#value' => $node->nid,
  );
  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $owner->uid,
  );
  return confirm_form($form, t('Are you sure you want to remove user %name as an owner of this advertisement?', array(
    '%name' => $owner->name,
  )), "node/{$node->nid}/adowners", t('This action cannot be undone.'), t('Remove'), t('Cancel'));
}