2 // This script prints the setup screen for any resource
3 // It does this by calling the setup method in the appropriate class
5 require_once("$CFG->dirroot/mod/resource/lib.php");
6 require_once("$CFG->dirroot/mod/resource/type/$form->type/resource.class.php");
8 $resourceclass = "resource_$form->type";
9 $resource = new $resourceclass();
11 $resource->setup($form);