1 cron_example.install cron_example_install()

Implements hook_install()

File

modules/examples/cron_example/cron_example.install, line 11
Installs, updates, and uninstalls cron_example.

Code

function cron_example_install() {
  $config = config('cron_example.settings');
  $config->set('cron_example_next_execution', time());
  $config->set('cron_example_interval', 60 * 60);
  $config->save();
}