'FAQ', 'page callback' => 'origo_global_faq_page', 'access callback' => 'user_access', 'access arguments' => array('access content'), 'type' => MENU_CALLBACK ); */ $items['global/terms_of_use'] = array( 'title' => 'General Terms of Use', 'page callback' => 'origo_global_tos_page', 'access callback' => TRUE, 'type' => MENU_CALLBACK ); return $items; } function origo_global_faq_page() { global $_origo_global_include_dir; global $_origo_global_faq_file; $path = drupal_get_path('module', 'origo_global'); $file .= $path .'/'. $_origo_global_include_dir .'/'. $_origo_global_faq_file; $content = file_get_contents($file); $output = ''; if ($content != FALSE) { $output = check_markup($content); } return $output; } function origo_global_tos_page() { global $_origo_global_include_dir; global $_origo_global_TOU_file; $path = drupal_get_path('module', 'origo_global'); $file .= $path .'/'. $_origo_global_include_dir .'/'. $_origo_global_TOU_file; $content = file_get_contents($file); $output = ''; if ($content != FALSE) { $output = check_markup($content); } return $output; } /** * Implementation of hook_block(). * * @param $op * @param $delta * @param $edit * @return unknown_type */ function origo_global_block($op = 'list', $delta = 0, $edit = array()) { // currently this is empty return ""; }