From b1ee7d3a0224b1ec9f659c15e2a1a4c88c538e3d Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Wed, 28 Nov 2007 01:20:59 +0000 Subject: [PATCH] MDL-12366, removing useless print_capabilities function --- lib/accesslib.php | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index 14bc6b4ff4..1f95fa74f6 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -1803,35 +1803,6 @@ function check_enrolment_plugins(&$user) { unset($inprogress[$user->id]); // Unset the flag } -/** - * A print form function. This should either grab all the capabilities from - * files or a central table for that particular module instance, then present - * them in check boxes. Only relevant capabilities should print for known - * context. - * @param $mod - module id of the mod - */ -function print_capabilities($modid=0) { - global $CFG; - - $capabilities = array(); - - if ($modid) { - // We are in a module specific context. - - // Get the mod's name. - // Call the function that grabs the file and parse. - $cm = get_record('course_modules', 'id', $modid); - $module = get_record('modules', 'id', $cm->module); - - } else { - // Print all capabilities. - foreach ($capabilities as $capability) { - // Prints the check box component. - } - } -} - - /** * Installs the roles system. * This function runs on a fresh install as well as on an upgrade from the old -- 2.39.5