You are here

function ad_owner_remove in Advertisement 5

1 string reference to 'ad_owner_remove'
ad_menu in ./ad.module
Implementation of hook_menu().

File

./ad.module, line 2469
An advertising system for Drupal powered websites.

Code

function ad_owner_remove($aid, $uid) {
  $form['aid'] = array(
    '#type' => 'value',
    '#value' => $aid,
  );
  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $uid,
  );
  $owner = user_load(array(
    'uid' => $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/{$aid}/adowners", t('This action cannot be undone.'), t('Remove'), t('Cancel'));
}