You are here

function activity_comment_delete in Activity 6

Same name and namespace in other branches
  1. 7 activity.module \activity_comment_delete()

Function to allow a single activity record comment to be deleted.

Parameters

$acid: Activity comment id.

1 string reference to 'activity_comment_delete'
activity_menu in ./activity.module
Implementation of hook_menu().

File

./activity.module, line 545
activity.module

Code

function activity_comment_delete($acid = NULL) {
  if ($acid && is_numeric($acid)) {
    db_query('DELETE FROM {activity_comments} WHERE acid = %d', $acid);
  }
  drupal_goto(drupal_get_destination());
}