Indicate that IMP has a mobile view
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 31 Jul 2009 04:06:32 +0000 (22:06 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 31 Jul 2009 04:40:22 +0000 (22:40 -0600)
imp/lib/api.php

index c616dec..8f8521a 100644 (file)
@@ -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()
 {