/[drupal]/contributions/modules/api/parser.inc
ViewVC logotype

Diff of /contributions/modules/api/parser.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.41.2.15 by drumm, Fri Aug 7 03:26:16 2009 UTC revision 1.41.2.16 by drumm, Fri Aug 7 07:14:58 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: parser.inc,v 1.41.2.14 2009/08/01 06:59:04 drumm Exp $  // $Id: parser.inc,v 1.41.2.15 2009/08/07 03:26:16 drumm Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 432  function api_save_documentation($docbloc Line 432  function api_save_documentation($docbloc
432        $node = new stdClass();        $node = new stdClass();
433        $node->type = 'api';        $node->type = 'api';
434        $node->uid = 0;        $node->uid = 0;
435        $node->comment = COMMENT_NODE_READ_WRITE;        if (module_exists('comment')) {
436            $node->comment = COMMENT_NODE_READ_WRITE;
437          }
438        node_save($node);        node_save($node);
439        $did = $node->nid;        $did = $node->nid;
440        db_query("INSERT INTO {api_documentation} (did, object_name, branch_name, object_type, title, file_name, summary, documentation, code) VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", $did, $docblock['object_name'], $docblock['branch_name'], $docblock['object_type'], $docblock['title'], $docblock['file_name'], $docblock['summary'], $docblock['documentation'], $docblock['code']);        db_query("INSERT INTO {api_documentation} (did, object_name, branch_name, object_type, title, file_name, summary, documentation, code) VALUES (%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')", $did, $docblock['object_name'], $docblock['branch_name'], $docblock['object_type'], $docblock['title'], $docblock['file_name'], $docblock['summary'], $docblock['documentation'], $docblock['code']);

Legend:
Removed from v.1.41.2.15  
changed lines
  Added in v.1.41.2.16

  ViewVC Help
Powered by ViewVC 1.1.3