You are here

function oa_core_store_orphan_settings in Open Atrium Core 7.2

Since there is no way to directly send anything to node_delete, store info.

Parameters

$node: A node that will be deleted.

$settings: Settings for that node being deleted.

2 calls to oa_core_store_orphan_settings()
oa_core_form_node_delete_confirm_validate in ./oa_core.module
Validate the function and set a variable for checking later to set og_orphan
oa_core_node_delete in ./oa_core.module
Implements hook_node_delete().

File

./oa_core.module, line 679

Code

function oa_core_store_orphan_settings($node, $settings = NULL) {
  $data =& drupal_static(__FUNCTION__, array());
  if ($settings) {
    $data[$node->nid] = $settings + (isset($data[$node->nid]) ? $data[$node->nid] : array());
  }
  return isset($data[$node->nid]) ? $data[$node->nid] : array();
}