Commit 74055c4e authored by Nigel McNie's avatar Nigel McNie
Browse files

Set a title for the page. Changed the get_html method to be render_self, to satisfy the view api.

parent 893d08bc
......@@ -31,6 +31,7 @@ define('SECTION_PLUGINNAME', 'resume');
define('SECTION_PAGE', 'index');
require_once(dirname(dirname(dirname(__FILE__))) . '/init.php');
define('TITLE', get_string('myresume', 'artefact.resume'));
require_once('pieforms/pieform.php');
require_once('pieforms/pieform/elements/calendar.php');
require('artefact.php');
......@@ -59,6 +60,9 @@ try {
}
catch (Exception $e) { }
$contactinformation_value = $contactinformation->render_self(array('editing' => true));
$contactinformation_value = $contactinformation_value['html'];
$form = array(
'name' => 'resumemainform',
'jsform' => true,
......@@ -107,7 +111,7 @@ $form = array(
'elements' => array(
'contactinformation' => array(
'type' => 'html',
'value' => $contactinformation->get_html(),
'value' => $contactinformation_value,
'help' => true,
),
),
......
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