function content_load
Search API
7.x content.module | content_load($cid, $reset = FALSE) |
6.x content.module | content_load($cid, |
4.x content.module | content_load($cid) |
5.x content.module | content_load($cid) |
Load the content from the database and return an array, by calling hook_content_load.
Parameters
unknown_type $cid:
30 calls to content_load()
- alerts_advisees_alerts_form in modules/
alerts/ alerts.module - Displays alerts for our various advisees.
- alerts_display_advisee_activities_page in modules/
alerts/ alerts.module - Display all advisee activities since the beginning of time, thanks to pager query.
- calendar_access_can_cancel_appointment in modules/
calendar/ calendar.module - Make sure the user is allowed to cancel this appointment.
- calendar_build_custom_calendar in modules/
calendar/ calendar.module - Actually renders the HTML for the calendar.
- calendar_confirm_cancel_appointment_form in modules/
calendar/ calendar.module - Confirm we actually want to cancel this appointment
File
- modules/
content/ content.module, line 1991
Code
function content_load($cid, $reset = FALSE) {
if (!$cid) {
return null;
}
if ($reset) {
unset($GLOBALS ['content_cache'][$cid]);
}
if (isset($GLOBALS ['content_cache'][$cid])) {
return $GLOBALS ['content_cache'][$cid];
}
$content = new stdClass();
$content->cid = $cid;
$modules = modules_implement_hook("content_load");
foreach ($modules as $module) {
call_user_func_array($module . "_content_load", array(&$content));
}
// Add to our globals cache
$GLOBALS ['content_cache'][$cid] = $content;
return $content;
}