array( 'title' => 'Send', 'page callback' => 'drupal_get_form', 'page arguments' => array('send_form', 1, TRUE, 2), 'access callback' => 'send_access', 'access arguments' => array(1, 2), 'type' => MENU_CALLBACK, 'file' => 'send.form.inc', 'file path' => $path, ), 'admin/settings/send' => array( 'title' => 'Send API', 'description' => 'Default settings for "Send to Friend" and other modules that send content via e-mail', 'page callback' => 'drupal_get_form', 'page arguments' => array('send_admin_form'), 'access arguments' => array('administer send'), 'type' => MENU_NORMAL_ITEM, 'file' => 'send.admin.inc', 'file path' => $path, ), 'admin/settings/send/template' => array( 'title' => 'Message templates', 'page callback' => 'send_template_admin_overview', 'access arguments' => array('administer send'), 'type' => MENU_LOCAL_TASK, 'file' => 'send.template.inc', 'file path' => $path, ), 'admin/settings/send/template/add' => array( 'title' => 'Edit template', 'page callback' => 'drupal_get_form', 'page arguments' => array('send_template_form'), 'access arguments' => array('administer send'), 'type' => MENU_CALLBACK, 'file' => 'send.template.inc', 'file path' => $path, ), 'admin/settings/send/template/%/edit' => array( 'title' => 'Edit template', 'page callback' => 'drupal_get_form', 'page arguments' => array('send_template_form', 4), 'access arguments' => array('administer send'), 'type' => MENU_CALLBACK, 'file' => 'send.template.inc', 'file path' => $path, ), 'admin/settings/send/default' => array( 'title' => 'Defaults', 'page callback' => 'drupal_get_form', 'page arguments' => array('_send_module_form'), 'access arguments' => array('administer send'), 'type' => MENU_DEFAULT_LOCAL_TASK, 'weight' => -10, 'file' => 'send.admin.inc', 'file path' => $path, ), 'send/js/send_form' => array( 'page callback' => 'send_form_js', 'access arguments' => array('administer send'), // TODO not correct. 'file' => 'send.form.inc', 'file path' => $path, ), 'node/%node/send' => array( //TODO this isn't done yet. ), ); return $items; }