Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 29... Línea 29...
29
 *
29
 *
30
 * @param int $userid
30
 * @param int $userid
31
 */
31
 */
32
function cancel_email_update($userid) {
32
function cancel_email_update($userid) {
33
    unset_user_preference('newemail', $userid);
33
    unset_user_preference('newemail', $userid);
34
    unset_user_preference('newemailkey', $userid);
-
 
35
    unset_user_preference('newemailattemptsleft', $userid);
34
    unset_user_preference('newemailattemptsleft', $userid);
-
 
35
    delete_user_key('core_user/email_change', $userid);
36
}
36
}
Línea 37... Línea 37...
37
 
37
 
38
/**
38
/**
39
 * Performs the common access checks and page setup for all
39
 * Performs the common access checks and page setup for all
Línea 185... Línea 185...
185
        }
185
        }
186
    }
186
    }
187
}
187
}
Línea 188... Línea 188...
188
 
188
 
189
/**
-
 
190
 * @deprecated since Moodle 3.2
-
 
191
 * @see core_user::update_picture()
-
 
192
 */
-
 
193
function useredit_update_picture() {
-
 
194
    throw new coding_exception('useredit_update_picture() can not be used anymore. Please use ' .
-
 
195
        'core_user::update_picture() instead.');
-
 
196
}
-
 
197
 
-
 
198
/**
189
/**
199
 * Updates the user email bounce + send counts when the user is edited.
190
 * Updates the user email bounce + send counts when the user is edited.
200
 *
191
 *
201
 * @param stdClass $user The current user object.
192
 * @param stdClass $user The current user object.
202
 * @param stdClass $usernew The updated user object.
193
 * @param stdClass $usernew The updated user object.