function ad_is_owner in Advertisement 5
Same name and namespace in other branches
- 6 owners/ad_owners.module \ad_is_owner()
File
- ./
ad.module, line 1458 - An advertising system for Drupal powered websites.
Code
function ad_is_owner($aid, $account = NULL) {
global $user;
if (is_null($account)) {
$account = $user;
}
if (db_result(db_query('SELECT oid FROM {ad_owners} WHERE uid = %d AND aid = %d', $user->uid, $aid))) {
return 1;
}
else {
return 0;
}
}