Commit 4605c2f6 authored by Penny Leach's avatar Penny Leach
Browse files
parents 57f93c81 aa73a27a
......@@ -37,7 +37,7 @@ defined('INTERNAL') || die();
* @param Form $form The form to render the element for
* @return string The HTML for the element
*/
function form_render_textarea($element, $form) {
function form_render_wysiwyg($element, $form) {
$rows = $cols = $style = '';
if (isset($element['height'])) {
$style .= 'height:' . $element['height'] . ';';
......
......@@ -509,7 +509,6 @@ function safe_require($plugintype, $pluginname, $filename='lib.php', $function='
}
/**
* This function returns the list of plugintypes we currently care about
* @return array of names
......@@ -541,11 +540,25 @@ function call_static_method($class, $method) {
return call_user_func_array(array($class, $method), $args);
}
/**
* Given a series of arguments, builds a Mahara coding style class name,
* prefixed with 'Plugin'.
*
* @todo perhaps this should be renamed? (plugin_class_name or similar)
* @param mixed A list of strings to be used in generating the class name
* @return string A mahara class name
*/
function generate_class_name() {
$args = func_get_args();
return 'Plugin' . implode('', array_map('ucfirst', $args));
}
/**
* Redirects a user to the given location. Once called, the script will exit.
*
* @param string $location The place to redirect the user to. Should be an
* absolute URL.
*/
function redirect($location) {
if (headers_sent()) {
throw new Exception('Headers already sent when redirect() was called');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment