/[drupal]/contributions/modules/import_html/import_html_modules.inc
ViewVC logotype

Diff of /contributions/modules/import_html/import_html_modules.inc

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

revision 1.11.4.2, Sun Apr 19 09:19:53 2009 UTC revision 1.11.4.3, Tue Oct 6 14:09:02 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: import_html_modules.inc,v 1.11.4.1 2009/03/14 13:41:16 dman Exp $  // $Id: import_html_modules.inc,v 1.11.4.2 2009/04/19 09:19:53 dman Exp $
3  /**  /**
4   * @file   * @file
5   * Additional per-module functionality used by import_html.   * Additional per-module functionality used by import_html.
6   *   *
7   * Each available module MAY impliment a hook_import_html() function to add or manipulate   * Each available module MAY impliment a hook_import_html() function to add or manipulate
8   * its own data as the node gets saved.   * its own data as the node gets saved.
9   *   *
10   * @ingroup import_html Import HTML   * @ingroup import_html Import HTML
11   * @author Dan Morrison http://coders.co.nz/   * @author Dan Morrison http://coders.co.nz/
12   */   */
13    
14  /**  /**
15   * hook_import_html - prototype function hook   * hook_import_html - prototype function hook
16   *   *
17   * invoke this when creating a node out of nothing   * invoke this when creating a node out of nothing
18   *   *
19   * @param $profile array of settings for the import_html process   * @param $profile array of settings for the import_html process
20   * @param $node node object with lots of extra data added to it, only some of which we want to save.   * @param $node node object with lots of extra data added to it, only some of which we want to save.
21   * @param $datadoc XML doc of the 'simple' node source that we may investigate for extra info if the cooked node object is not good enough   * @param $datadoc XML doc of the 'simple' node source that we may investigate for extra info if the cooked node object is not good enough
22   */   */
23  function hook_import_html($profile, &$node, $datadoc = NULL) {  function hook_import_html($profile, &$node, $datadoc = NULL) {
24    
25  }  }
26  /**  /**
27   * hook_import_html_after_save - prototype function hook   * hook_import_html_after_save - prototype function hook
28   *   *
29   * Some functions (alias) can only operate when the nid is already known.   * Some functions (alias) can only operate when the nid is already known.
30   * Invoke this when the node has been created   * Invoke this when the node has been created
31   *   *
32   * @param $profile array of settings for the import_html process   * @param $profile array of settings for the import_html process
33   * @param $node node object with lots of extra data added to it, only some of which we want to save.   * @param $node node object with lots of extra data added to it, only some of which we want to save.
34   * @param $datadoc XML doc of the 'simple' node source that we may investigate for extra info if the cooked node object is not good enough   * @param $datadoc XML doc of the 'simple' node source that we may investigate for extra info if the cooked node object is not good enough
35   */   */
36  function hook_import_html_after_save($profile, &$node, $datadoc = NULL) {  function hook_import_html_after_save($profile, &$node, $datadoc = NULL) {
37    
38  }  }
39    
40    

Legend:
Removed from v.1.11.4.2  
changed lines
  Added in v.1.11.4.3

  ViewVC Help
Powered by ViewVC 1.1.2