You are here

function shurly_cron in ShURLy 8

Same name and namespace in other branches
  1. 6 shurly.module \shurly_cron()
  2. 7 shurly.module \shurly_cron()

Implements hook_cron().

File

./shurly.module, line 75
Description http://www.youtube.com/watch?v=Qo7qoonzTCE.

Code

function shurly_cron() {

  // Cleanup the flood.
  \Drupal::database()
    ->delete('shurly_flood')
    ->condition('expiration', time(), '<')
    ->execute();
}