forum_field_storage_pre_update

function forum_field_storage_pre_update

forum_field_storage_pre_update($entity_type, $entity, &$skip_fields)

Implements hook_field_storage_pre_update().

File

modules/forum/forum.module, line 550
Provides discussion forums.

Code

function forum_field_storage_pre_update($entity_type, $entity, &$skip_fields) {
  $first_call = &drupal_static(__FUNCTION__, array());

  if ($entity_type == 'node' && _forum_node_check_node_type($entity)) {

    // If the node is published, update the forum index.
    if ($entity->status) {

      // We don't maintain data for old revisions, so c