You are here

function activity_comment_delete_link in Activity 6

Check if user has right to delete a single activity record comment and if so, return a the activity record comment delete link.

1 call to activity_comment_delete_link()
theme_activity_comments in ./activity.module
Theme function to process activity comments on activity records.

File

./activity.module, line 569
activity.module

Code

function activity_comment_delete_link($activity_comment) {
  global $user;
  if (user_access('delete activity') && $user->uid != 0 && $activity_comment->uid == $user->uid || user_access('administer activity')) {
    return theme('activity_comment_delete_link', $activity_comment);
  }
  return NULL;
}