You are here

function jplayer_protect_cron in jPlayer 7.2

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

Implements hook_cron().

File

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

Code

function jplayer_protect_cron() {

  // Delete records older than a week.
  // TODO Needs dbtng.
  db_query("DELETE FROM {jplayer_protect_denied} WHERE timestamp < :time", array(
    ':time' => time() - 604800,
  ));
}