You are here

function commerce_node_checkout_expire_menu in Commerce Node Checkout 7

Implements hook_menu().

File

commerce_node_checkout_expire/commerce_node_checkout_expire.module, line 23
Provides core hooks and the like for the module.

Code

function commerce_node_checkout_expire_menu() {
  $items = array();
  $items['node/%node/relist'] = array(
    'title' => 'Relist',
    'description' => 'Renew your listing.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_node_checkout_expire_relist_form',
      1,
    ),
    'access arguments' => array(
      1,
    ),
    'access callback' => 'commerce_node_checkout_expire_relist_access',
    'weight' => 1,
    'type' => MENU_LOCAL_TASK,
  );
  $items['node/%node/expiration'] = array(
    'title' => 'Adjust expiration',
    'description' => 'Adjust the expiration time of this node.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_node_checkout_expire_adjust_expiration_form',
      1,
    ),
    'access arguments' => array(
      1,
    ),
    'access callback' => 'commerce_node_checkout_expire_adjust_expiration_access',
    'weight' => 2,
    'type' => MENU_LOCAL_TASK,
    'file' => 'commerce_node_checkout_expire.pages.inc',
  );
  return $items;
}