Project

General

Profile

« Previous | Next » 

Revision c7e36592

Added by Andreas Kohlbecker almost 14 years ago

fixing cdm nodetype comment settings

View differences:

modules/cdm_dataportal/cdm_api/cdm_node.php
21 21
    $messages = drupal_set_message();
22 22

  
23 23
    $result = drupal_execute($node->type.'_node_form', $values, $node);
24
    
25 24
    // restore the messages
26
    if(isset($messages)){
27
      $_SESSION['messages'] = $messages;
28
    }
25
    $_SESSION['messages'] = $messages;
29 26
    
30 27
    if(!is_array($result)){
31 28
      // result should contain the path the newly created node; e.g.: node/32

Also available in: Unified diff