Skip to content
Permalink
Browse files

MDL-12366, removing useless print_capabilities function

  • Loading branch information...
toyomoyo
toyomoyo committed Nov 28, 2007
1 parent b4c1142 commit 76cf7cce29f7c49384dc0a4f404c4343ebed0310
Showing with 0 additions and 29 deletions.
  1. +0 −29 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

0 comments on commit 76cf7cc

Please sign in to comment.
You can’t perform that action at this time.