function content_load
Search API
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:
5 calls to content_load()
- announcements_render_announcements in modules/
announcements/ announcements.module - Return the HTML rendering the announcements we have in the database.
- blocks_render_block in modules/
blocks/ blocks.module - Implementation of hook_render_block. We are going to render out our content_block content type.
- content_edit_content_form in modules/
content/ content.module - This form lets the user edit some piece of content
- content_menu_handle_replacement_pattern in modules/
content/ content.module - This is an implementation of hook_menu_handle_replacement_pattern. It will search for and replace replacement patterns which we are aware of it in $str.
- content_view_content in modules/
content/ content.module - Display the content specified in the GET's cid.
File
- modules/
content/ content.module, line 434
Code
function content_load($cid) {
$rtn = array();
$rtn ["cid"] = $cid;
$modules = modules_implement_hook("content_load");
foreach ($modules as $module) {
// Since PHP 5.4 removes call-time pass by reference,
// I cannot use call_user_func. Instead, I will call the
// functions directly like so:
// $name($val).
$function = $module . "_content_load";
$function($rtn);
}
return $rtn;
}