You are here

function recommender_purge_app in Recommender API 5

Same name and namespace in other branches
  1. 6.2 recommender.module \recommender_purge_app()

Remove the application. Usually used in calling module's hook_uninstall()

Parameters

$app_name the application name to be removed.:

Return value

null

File

./recommender.module, line 522
Providing generic recommender system algorithms.

Code

function recommender_purge_app($app_name) {
  $app_id = recommender_get_app_id($app_name);
  db_query("DELETE FROM {recommender_similarity} WHERE app_id=%d", $app_id);
  db_query("DELETE FROM {recommender_prediction} WHERE app_id=%d", $app_id);
  db_query("DELETE FROM {recommender_slopeone_dev} WHERE app_id=%d", $app_id);
  db_query("DELETE FROM {recommender_updated_queue} WHERE app_id=%d", $app_id);
  db_query("DELETE FROM {recommender_app_map} WHERE app_id=%d", $app_id);
}