]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-12366, removing useless print_capabilities function
authortoyomoyo <toyomoyo>
Wed, 28 Nov 2007 01:20:59 +0000 (01:20 +0000)
committertoyomoyo <toyomoyo>
Wed, 28 Nov 2007 01:20:59 +0000 (01:20 +0000)
lib/accesslib.php

index 14bc6b4ff407693dd3b471dd3d969fd6bd36186a..1f95fa74f635efa416263528b6cf45e9597319eb 100755 (executable)
@@ -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