You are here

function ad_permission_owner_remove in Advertisement 5.2

1 string reference to 'ad_permission_owner_remove'
ad_permission_menu in permission/ad_permission.module
@file Provide granular permissions for advertisements.

File

permission/ad_permission.module, line 433
Provide granular permissions for advertisements.

Code

function ad_permission_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'));
}