From 825cdf8560e6b9f6dda9debdd271494fdfd3fcf7 Mon Sep 17 00:00:00 2001 From: Thomas Mueller Date: Tue, 29 Jan 2013 17:28:08 +0100 Subject: add support for apps to register alternative login methods below the standard login a list of icons/button will be displayed --- lib/app.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/app.php') diff --git a/lib/app.php b/lib/app.php index 108226fc1a1..36e2983722c 100644 --- a/lib/app.php +++ b/lib/app.php @@ -36,6 +36,7 @@ class OC_App{ static private $appTypes = array(); static private $loadedApps = array(); static private $checkedApps = array(); + static private $altLogin = array(); /** * @brief loads all apps @@ -557,6 +558,14 @@ class OC_App{ self::$personalForms[]= $app.'/'.$page.'.php'; } + public static function registerLogIn($entry) { + self::$altLogin[] = $entry; + } + + public static function getAlternativeLogIns() { + return self::$altLogin; + } + /** * @brief: get a list of all apps in the apps folder * @return array or app names (string IDs) -- cgit v1.2.3