You are here

function theme_activity_comment_delete_link in Activity 6

Theme function to create a link to delete a single activity record comment.

1 theme call to theme_activity_comment_delete_link()
activity_comment_delete_link in ./activity.module
Check if user has right to delete a single activity record comment and if so, return a the activity record comment delete link.

File

./activity.module, line 1397
activity.module

Code

function theme_activity_comment_delete_link($activity_comment) {
  return l('X', 'activity/comment/delete/' . $activity_comment->acid, array(
    'attributes' => array(
      'title' => t('Delete this activity record comment'),
      'class' => 'activity-delete-comment',
    ),
    'query' => drupal_get_destination(),
  ));
}