function lti_tool_provider_consumer_load in LTI Tool Provider 7
Load a consumer.
Parameters
integer $id: The id of the consumer entity to be loaded.
boolean $reset: Wether to reset the cache.
Return value
object The consumer entity.
6 calls to lti_tool_provider_consumer_load()
- lti_tool_provider_outcomes_lti_tool_provider_return in lti_tool_provider_outcomes/
lti_tool_provider_outcomes.module - Implements hook_lti_tool_provider_return().
- lti_tool_provider_outcomes_outcomes_manage_form in lti_tool_provider_outcomes/
lti_tool_provider_outcomes.admin.inc - Form function for managing outcomes.
- lti_tool_provider_outcomes_pull_results in lti_tool_provider_outcomes/
lti_tool_provider_outcomes.sync.inc - Retrieves results from the Consumer.
- 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_send_results in lti_tool_provider_outcomes/
lti_tool_provider_outcomes.sync.inc - Send results to the Consumer.
File
- ./
lti_tool_provider.module, line 445 - lti_tool_provider hook implementations and support functions.
Code
function lti_tool_provider_consumer_load($id = NULL, $reset = FALSE) {
$ids = isset($id) ? array(
$id,
) : array();
$obj = lti_tool_provider_consumer_load_multiple($ids, $reset);
return $obj ? reset($obj) : FALSE;
}