summaryrefslogtreecommitdiffstats
path: root/lib/api
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2012-01-20 15:51:00 +0100
committerAleksander Machniak <machniak@kolabsys.com>2012-01-20 15:51:00 +0100
commit9822f33b6340da429d86efe0513491c22c9a284d (patch)
treea5ce6d5223f58c4d3211cfe53117fffa34e879f3 /lib/api
parent88b57e40999441c0bf9c994ca5bf878e532800de (diff)
downloadwebadmin-9822f33b6340da429d86efe0513491c22c9a284d.tar.gz
Unify user_types and capabilities responses (list and count items)
Return capabilities as hashes not arrays
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/kolab_user_types_actions.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/api/kolab_user_types_actions.php b/lib/api/kolab_user_types_actions.php
index cf81aec..5335c58 100644
--- a/lib/api/kolab_user_types_actions.php
+++ b/lib/api/kolab_user_types_actions.php
@@ -32,6 +32,9 @@ class kolab_user_types_actions extends kolab_api_service
}
}
- return $user_types;
+ return array(
+ 'list' => $user_types,
+ 'count' => count($user_types),
+ );
}
}