function comment_og_comment_delete in Comment OG 6
Same name and namespace in other branches
- 5 comment_og.module \comment_og_comment_delete()
Returns true if the option is enabled and the acting user is a group admin
1 string reference to 'comment_og_comment_delete'
- comment_og_menu_alter in ./
comment_og.module - Implementation of hook_menu_alter().
File
- ./
comment_og.module, line 237
Code
function comment_og_comment_delete($gid = NULL) {
$coad = variable_get('comment_og_admin_delete', 1);
if ($gid && $coad) {
$group = node_load($gid);
og_load_group($group);
return og_is_group_admin($group);
}
else {
return user_access('administer comments');
}
}