Can anyone take a peek at this code and tell me if it looks right? (thank you)
$wgHooks['AutopromoteCondition'][] =
'MyExtensionHooks::onAutopromoteCondition';
function onAutopromoteCondition( APCOND_INGROUPS,
'name-of-group-to-promote-to-if-function-is-true', $user, &$result ) {
if ($HTTP_HEADER_VARIABLE_I_AM_TESTING=="value that i'm looking for")
{ return true; } else { return false; }
}
(Note - the goal is to automatically add a user to a group based on a session header
variable from the host server)