You are here

function audio_filefield_paths_update in File (Field) Paths 6

Implements hook_filefield_paths_update().

File

modules/audio.inc, line 83
Provides FileField Paths integration with the Audio module.

Code

function audio_filefield_paths_update($oid, $field) {
  $node = node_load($oid);

  // Flag files for update.
  $node->audio['file']->source = 'filefield_paths';

  // Set Form ID.
  $node->form_id = $node->type . '_node_form';

  // Process Node.
  filefield_paths_nodeapi($node, 'update', NULL, NULL);
}