Projet

Général

Profil

Paste
Télécharger (987 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / feeds_xpathparser / feeds_xpathparser.module @ 74f6bef0

1
<?php
2

    
3
/**
4
 * @file
5
 * Parse an XML or HTML document using XPath.
6
 */
7

    
8
/**
9
 * Implements hook_feeds_plugins().
10
 */
11
function feeds_xpathparser_feeds_plugins() {
12
  return array(
13
    'FeedsXPathParserHTML' => array(
14
      'name' => t('XPath HTML parser'),
15
      'description' => t('Parse HTML using XPath.'),
16
      'handler' => array(
17
        'parent' => 'FeedsParser',
18
        'class' => 'FeedsXPathParserHTML',
19
        'file' => 'FeedsXPathParserHTML.inc',
20
      ),
21
    ),
22
    'FeedsXPathParserXML' => array(
23
      'name' => t('XPath XML parser'),
24
      'description' => t('Parse XML using XPath.'),
25
      'handler' => array(
26
        'parent' => 'FeedsParser',
27
        'class' => 'FeedsXPathParserXML',
28
        'file' => 'FeedsXPathParserXML.inc',
29
      ),
30
    ),
31
  );
32
}
33

    
34
/**
35
 * Implements hook_hook_info().
36
 */
37
function feeds_xpathparser_hook_info() {
38
  $hooks = array();
39
  $hooks['feeds_xpathparser_filter_domnode'] = array(
40
    'group' => 'feeds_xpathparser',
41
  );
42

    
43
  return $hooks;
44
}