You are here

function activity_aid_load in Activity 6

Menu wildcard loader callback for activity_delete page callback.

File

./activity.module, line 135
activity.module

Code

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