1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
// $Id: feeds_jsonpath_parser.module,v 1.1.4.1 2011/02/05 18:12:18 twistor Exp $
|
3 |
|
|
|
4 |
|
|
/**
|
5 |
|
|
* Implements hook_feeds_plugins().
|
6 |
|
|
*/
|
7 |
|
|
function feeds_jsonpath_parser_feeds_plugins() {
|
8 |
|
|
$path = drupal_get_path('module', 'feeds_jsonpath_parser');
|
9 |
|
|
$info = array();
|
10 |
|
|
$info['FeedsJSONPathParser'] = array(
|
11 |
|
|
'name' => t('JSONPath parser'),
|
12 |
|
|
'description' => t('Parse JSON using JSONPath.'),
|
13 |
|
|
'handler' => array(
|
14 |
|
|
'parent' => 'FeedsParser',
|
15 |
|
|
'class' => 'FeedsJSONPathParser',
|
16 |
|
|
'file' => 'FeedsJSONPathParser.inc',
|
17 |
|
|
'path' => $path,
|
18 |
|
|
),
|
19 |
|
|
);
|
20 |
|
|
return $info;
|
21 |
|
|
}
|
22 |
|
|
|
23 |
|
|
/**
|
24 |
|
|
* Implements hook_enable().
|
25 |
|
|
*
|
26 |
|
|
* Clear Feed's plugin cache so that this plugin shows up.
|
27 |
|
|
*/
|
28 |
|
|
function feeds_jsonpath_parser_enable() {
|
29 |
|
|
cache_clear_all('plugins:feeds:plugins', 'cache');
|
30 |
|
|
} |