aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/provider/provider_interface.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-02-03 14:42:42 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-03-24 17:08:55 +0100
commitca883f119614bf636802320e60822e1ed4992f2e (patch)
tree02b8413f05ce2f2b16db7a9f2d647d132551087f /phpBB/phpbb/auth/provider/provider_interface.php
parent3d0153de605d8a37e233df4db8abd66216623d2e (diff)
downloadforums-ca883f119614bf636802320e60822e1ed4992f2e.tar
forums-ca883f119614bf636802320e60822e1ed4992f2e.tar.gz
forums-ca883f119614bf636802320e60822e1ed4992f2e.tar.bz2
forums-ca883f119614bf636802320e60822e1ed4992f2e.tar.xz
forums-ca883f119614bf636802320e60822e1ed4992f2e.zip
[ticket/13564] Allow to specify user id for retrieving auth link data
PHPBB3-13564
Diffstat (limited to 'phpBB/phpbb/auth/provider/provider_interface.php')
-rw-r--r--phpBB/phpbb/auth/provider/provider_interface.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/phpbb/auth/provider/provider_interface.php b/phpBB/phpbb/auth/provider/provider_interface.php
index 613297cefc..35e0f559a1 100644
--- a/phpBB/phpbb/auth/provider/provider_interface.php
+++ b/phpBB/phpbb/auth/provider/provider_interface.php
@@ -166,6 +166,10 @@ interface provider_interface
/**
* Returns an array of data necessary to build the ucp_auth_link page
*
+ * @param int $user_id User ID for whom the data should be retrieved.
+ * defaults to 0, which is not a valid ID. The method
+ * should fall back to the current user's ID in this
+ * case.
* @return array|null If this function is not implemented on an auth
* provider then it returns null. If it is implemented
* it will return an array of up to four elements of
@@ -181,7 +185,7 @@ interface provider_interface
* 'VARS' => array(...),
* )
*/
- public function get_auth_link_data();
+ public function get_auth_link_data($user_id = 0);
/**
* Unlinks an external account from a phpBB account.