function lti_tool_provider_outcomes_datatype_array in LTI Tool Provider 7
This function breaks down the lis_result_sourcedids into an array.
The array is used for the dropdown list.
Parameters
string $datatype: The result value source dids.
Return value
array Array for dropdown list in the Grades Mapping Form.
4 calls to lti_tool_provider_outcomes_datatype_array()
- lti_tool_provider_outcomes_get_set_resource in lti_tool_provider_outcomes/
lti_tool_provider_outcomes.module - Retrieve the corresponding resource record, and create if it does not exist.
- lti_tool_provider_outcomes_resource_confirm_change_form in lti_tool_provider_outcomes/
lti_tool_provider_outcomes.admin.inc - Form for confirming changes to resource datatypes.
- lti_tool_provider_outcomes_resource_manage_form in lti_tool_provider_outcomes/
lti_tool_provider_outcomes.admin.inc - Form to manage outcomes.
- lti_tool_provider_outcomes_resource_manage_form_submit in lti_tool_provider_outcomes/
lti_tool_provider_outcomes.admin.inc - Submit handler for the Resource form.
File
- lti_tool_provider_outcomes/
lti_tool_provider_outcomes.module, line 456
Code
function lti_tool_provider_outcomes_datatype_array($datatype) {
$data_arr = array();
$another_arr = explode(',', $datatype);
if (isset($datatype)) {
if (sizeof($another_arr) < 1) {
$data_arr[] = $datatype;
}
else {
foreach ($another_arr as $str) {
$data_arr[] = $str;
}
}
}
else {
$data_arr[] = 'decimal';
}
return $data_arr;
}