You are here

function cron_example_menu in Examples for Developers 7

Implements hook_menu().

Related topics

File

cron_example/cron_example.module, line 22
Demonstrates use of the Cron API in Drupal - hook_cron()

Code

function cron_example_menu() {
  $items['examples/cron_example'] = array(
    'title' => 'Cron Example',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'cron_example_form',
    ),
    'access callback' => TRUE,
  );
  return $items;
}