From a51e0dc9b6e7a0abc20e7fa0ebb6b5175fad1849 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 30 Jul 2009 22:06:32 -0600 Subject: [PATCH] Indicate that IMP has a mobile view --- imp/lib/api.php | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/imp/lib/api.php b/imp/lib/api.php index c616dec7d..8f8521a3d 100644 --- a/imp/lib/api.php +++ b/imp/lib/api.php @@ -124,6 +124,12 @@ $_services = array( 'type' => 'boolean' ), + /* Indicate that mobile view is available. */ + 'mobileView' => array( + 'args' => array(), + 'type' => 'boolean' + ), + /* Cache display method. */ 'cacheOutput' => array( 'args' => array( @@ -581,8 +587,20 @@ function _imp_cacheOutput($params) } } -/* - * TODO +/** + * Indicate that IMP supports a mobile view. + * + * @return boolean True. + */ +function _imp_mobileView() +{ + return true; +} + +/** + * Return login parameters used on the login page. + * + * @return array TODO */ function _imp_authLoginParams() { -- 2.11.0