All pastes #794316 Raw Edit

Something

public text v1 · immutable
#794316 ·published 2007-11-23 00:45 UTC
rendered paste body
/**
 * Implementation of hook_menu().
 */
function nzg_usersync_menu($may_cache) {
  $items = array();

  $items[] = array(
		   'path' => 'admin/greens/nzg_usersync_fb_to_mysql', // drupal path example.com/?q=hello
		   'title' => 'Copy GREENFORUM records to local cache', // page title
		   'description' => 'Copy old database to a local temporary table for export',
		   'callback' => 'nzg_usersync_fb_to_mysql', // callback function name
		   'access' => array('headoffice view'), // every user can look at generated page
		   'type' => MENU_NORMAL_ITEM // define type of menu item as callback
		   );

  $items[] = array(
		   'path' => 'admin/greens/nzg_usersync_export_csv', // drupal path example.com/?q=hello
		   'title' => 'Export Member Details CSV', // page title
		   'description' => 'Export a CSV of member contact details to update CiviCRM',
		   'callback' => 'nzg_usersync_export_csv', // callback function name
		   'access' => array( 'headoffice view' ), // every user can look at generated page
		   'type' => MENU_NORMAL_ITEM // define type of menu item as callback
		   );

  $items[] = array(
		   'path' => 'admin/greens/nzg_usersync_export_membership_csv', // drupal path example.com/?q=hello
		   'title' => 'Export Membership CSV', // page title
		   'description' => 'Export a CSV of membership records to update CiviCRM',
		   'callback' => 'nzg_usersync_export_membership_csv', // callback function name
		   'access' => array( 'headoffice view' ), // every user can look at generated page
		   'type' => MENU_NORMAL_ITEM // define type of menu item as callback
		   );

  $items[] = array(
		   'path' => 'nzgusersync2', // drupal path example.com/?q=hello
		   'title' => 'User Synchronisation', // page title
		   'callback' => 'nzg_usersync_phase2', // callback function name
		   'access' => TRUE, // every user can look at generated page
		   'type' => MENU_CALLBACK // define type of menu item as callback
		   );

  return $items;
}