You are here

function sheetnode_node_update_index in Sheetnode 7

Same name and namespace in other branches
  1. 7.2 sheetnode.module \sheetnode_node_update_index()

Implements hook_node_update_index().

File

./sheetnode.module, line 313
Module file for the sheetnode module.

Code

function sheetnode_node_update_index($node) {
  $output = '';
  if ($node->type == 'sheetnode') {
    $output .= _sheetnode_update_index($node->sheetnode['value']);
  }
  foreach (sheetnode_get_sheetfields($node->type) as $field_name => $field) {
    foreach ($node->{$field_name}[LANGUAGE_NONE] as $item) {
      $output .= _sheetnode_update_index($item['value']);
    }
  }
  return $output;
}