From ca17727478b44b8bec6bb7f8ed1c8c688818b8f6 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 5 Oct 2009 17:08:27 -0700 Subject: Access the form validation rules via the API for groups and users --- modules/gallery/libraries/Identity.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/gallery/libraries/Identity.php') diff --git a/modules/gallery/libraries/Identity.php b/modules/gallery/libraries/Identity.php index 41c25b39..5e6f4217 100644 --- a/modules/gallery/libraries/Identity.php +++ b/modules/gallery/libraries/Identity.php @@ -217,4 +217,14 @@ class Identity_Core { public function list_groups($filter=array()) { return $this->driver->list_groups($filter); } + + /** + * Return the edit rules associated with an group. + * + * @param string $object_type to return rules for ("user"|"group") + * @return stdClass containing the rules + */ + public function get_edit_rules($object_type) { + return $this->driver->get_edit_rules($object_type); + } } // End Identity -- cgit v1.2.3