function content_save
Search API
7.x content.module | content_save(&$content) |
6.x content.module | content_save(&$content) |
Save the content to the database.
Parameters
unknown_type $cid:
8 calls to content_save()
- calendar_confirm_cancel_appointment_form_submit in modules/
calendar/ calendar.module - calendar_schedule_appointment_confirm_form_submit in modules/
calendar/ calendar.module - We passed validation, it's time to actually submit now!
- content_edit_content_form_submit in modules/
content/ content.module - Submit handler for the edit content form.
- content_unpublish_content_form_submit in modules/
content/ content.module - engagements_handle_incoming_sms in modules/
engagements/ engagements.module - This catches incoming sms messages from POST, but can also be used by our "sms_get_all_messages" function, but it is also used by the sms_get_all_messages to save/update information.
File
- modules/
content/ content.module, line 1804
Code
function content_save(&$content) {
// Remove from our globals cache
if ($content->cid != 'new') {
unset($GLOBALS ['content_cache'][$content->cid]);
}
$modules = modules_implement_hook("content_save");
foreach ($modules as $module) {
call_user_func_array($module . "_content_save", array(&$content));
}
// Save to globals cache
$GLOBALS ['content_cache'][$content->cid] = $content;
}