You are here

function globallink_node_save in GlobalLink Connect for Drupal 7.7

Same name and namespace in other branches
  1. 7.5 globallink_node.inc \globallink_node_save()
  2. 7.6 globallink_node.inc \globallink_node_save()

Saves GlobalLink node.

Parameters

object $node: The node to save.

Return value

True if save is successful.

1 call to globallink_node_save()
globallink_save_translated_node_with_fields in ./globallink_node.inc
Saves translated node with fields.

File

./globallink_node.inc, line 810

Code

function globallink_node_save(&$node) {
  try {
    node_save($node);
    return TRUE;
  } catch (Exception $e) {
    watchdog(GLOBALLINK_MODULE, 'Exception - %function - File[%file], Line[%line], Code[%code], Message[%message]', array(
      '%function' => __FUNCTION__,
      '%file' => $e
        ->getFile(),
      '%line' => $e
        ->getLine(),
      '%code' => $e
        ->getCode(),
      '%message' => $e
        ->getMessage(),
    ), WATCHDOG_ERROR);
    return FALSE;
  }
}