You are here

function comment_og_comment_delete in Comment OG 5

Same name and namespace in other branches
  1. 6 comment_og.module \comment_og_comment_delete()

Returns true if 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 84

Code

function comment_og_comment_delete($gid = NULL) {
  if ($gid) {
    $group = node_load($gid);
    og_load_group($group);
    return og_is_group_admin($group);
  }
  else {
    return user_access('administer comments') && user_access('post comments');
  }
}