You are here

function activity_acid_load in Activity 6

Menu wildcard loader callback for activity_comment_delete page callback.

File

./activity.module, line 167
activity.module

Code

function activity_acid_load($acid) {
  if (!is_numeric($acid)) {
    return FALSE;
  }
  $count = db_result(db_query('SELECT COUNT(*) FROM {activity_comments} WHERE acid = %d', $acid));
  if ($count > 0) {
    return $acid;
  }
  else {
    return FALSE;
  }
}