You are here

function jplayer_protect_cron in jPlayer 6

Same name and namespace in other branches
  1. 7.2 jplayer_protect/jplayer_protect.module \jplayer_protect_cron()

Implements hook_cron().

File

jplayer_protect/jplayer_protect.module, line 52
Provides basic content protection for media files accessed with jPlayer.

Code

function jplayer_protect_cron() {

  // Delete records older than a week.
  db_query("DELETE FROM {jplayer_denied} WHERE timestamp < %d", time() - 604800);
}