Don't forget to update the initUser function as well...
I do realize that I am speaking to the author of "LdapAuthentication.php",
...but, as I understand the following line taken from the "initUser()"
function:
//The update user function does everything else we need done.
$this->updateUser($user);
it is calling the function i just customized.
...and I added my customization just after the "$this->printDebug()"
statement at the top, outside of the:
//If we aren't pulling preferences, we don't want to accidentally
//overwrite anything."
So, do I win the "No Prize"? ;-)
- Rich
"Lane, Ryan" <Ryan.Lane(a)ocean.navo.navy.mil> wrote:
I'd like to assert preferences on the users, in
order to
make sure they recieve emails a certain way. Where can I find
out how to fully use the "setOption()" function?
Probably by looking at User.php and SpecialPreferences.php in the
includes directory. I don't think all of the options are really
documented anywhere.
I am already using it to assert the user's skin
choice as:
$user->setOption('skin','monobook');
$saveSettings = true;
in the function: "updateUser( &$user )" in my
"LdapAuthentication.php" file.
Don't forget to update the initUser function as well...
V/r,
Ryan Lane
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com