getGUID(); $subtype_id = (int)add_subtype('user', 'openid'); $query = "UPDATE {$db_prefix}entities SET subtype = $subtype_id WHERE guid = $guid"; update_data($query); } /** * OpenID client page handler * * @param type $page Array of URL segments * @return bool */ function openid_client_page_handler($page) { // this is test code for right now elgg_load_library('openid_client'); openid_client_registration_page_handler(array( 'username' => 'john', 'email' => 'john@example.org', 'name' => 'John Doe', 'openid_identifier' => 'abcdefghijklmnopqrstuvwxyz', )); return true; }