function content_save

7.x content.module content_save(&$content)
6.x content.module content_save(&$content)

Save the content to the database.

Parameters

unknown_type $cid:

11 calls to content_save()
calendar.module in modules/calendar/calendar.module
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.module in modules/content/content.module
content_edit_content_form_submit in modules/content/content.module
Submit handler for the edit content form.

... See full list

File

modules/content/content.module, line 1791

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;


}