You are here

function hook_gathercontent_pre_node_save_alter in GatherContent 7.3

Alter node or its fields before it's saved.

You can change all node properties and perform various operations with them before the node is saved in Drupal. Node doesn't have node ID while calling this hook. Menu items and meta tags aren't saved/created while calling this hook. For operations requiring node ID

Parameters

object $entity: Entity metadata wrapper of node.

$source_values: Source fields representing object in GatherContent.

array $files: Array of files fetched from GatherContent.

See also

hook_gathercontent_post_node_save_alter().

1 invocation of hook_gathercontent_pre_node_save_alter()
_gathercontent_fetcher in ./gathercontent.module
Helper function for fetching data from GatherContent.

File

./gathercontent.api.php, line 28
Hooks provided by the GatherContent module.

Code

function hook_gathercontent_pre_node_save_alter(&$entity, &$source_values, array &$files) {
}