function content_content_load
Search API
7.x content.module | content_content_load(&$content) |
6.x content.module | content_content_load(&$content) |
4.x content.module | content_content_load(&$content) |
5.x content.module | content_content_load(&$content) |
Implementation of content's hook_content_load
We simply wish to load from our db table. The cid is in $content["cid"].
Parameters
unknown_type $content:
File
- modules/
content/ content.module, line 461
Code
function content_content_load(&$content) {
$res = db_query("SELECT * FROM content WHERE cid = '?' ", $content ["cid"]);
$cur = db_fetch_array($res);
if ($cur ["settings"] != "") {
$arr = unserialize($cur ["settings"]);
$cur ["settings"] = $arr;
}
if ($cur && is_array($cur) && count($cur) > 0) {
$content += $cur;
}
}