Hi Friend,
I found out some problem to follow your instruction
first 1: version problem, so i have changed your moodle.info like this
; $Id: openid_provider.info,v 1.4 2008/09/07 03:39:57 walkah Exp $
name = Moodle
description = "Limited iframe and SSO integration with Moodle."
core = 6.x
; Information added by drupal.org packaging script on 2008-08-19
version = "6.x-1.x-dev"
core = "6.x"
project = "moodle"
datestamp = "1220789337"
Second 1: warning: Missing argument 1 for moodle_menu() in /opt/lampp/htdocs/project/drupal/sites/all/modules/moodle/moodle.module on line 17
i have changed your function of
function moodle_menu($may_cache)
like this
function moodle_menu() {
global $user;
$items = array();
$access = user_access('access moodle');
$items[] = array(
'path' => 'admin/settings/moodle',
'title' => t('Moodle module'),
'description' => t('Allows users to SSO in moodle.'),
'callback' => 'drupal_get_form',
'callback arguments' => 'moodle_settings',
'access' => user_access('administer site configuration'),
);
$items[] = array( 'path' => 'moodle',
'title' => t('Moodle'),
'callback' => 'moodle_page',
'access' => $access,
'type' => MENU_CALLBACK);
$items[] = array(
'path' => 'moodle',
'title' => t('Moodle'),
'callback' => 'moodle_page',
'access' => $access,
'type' => MENU_NORMAL_ITEM);
return $items;
}
these two problem was solved
but
i can't follow your last two instructionsuch as
- Set the path to the moodle directory containing a final forward slash, so something like "/moodle/". Just go to Site Configuration > Moodle Module. In my case, the path is "../moodle/" as I have Drupal (http://localhost/drupal) and Moodle (http://localhost/moodle) installed on the same level on Webserver.
- You may also need to grant the "authenticated user" role the permission to access the Moodle Module (User Management > Access control), otherwise only Admin can access it.
what i want to do? Please help me
my requirement is single login for drupal and moodle except open id
thanks