You are here

feeds_jsonpath_parser.module in Feeds JSONPath Parser 6

Same filename and directory in other branches
  1. 7 feeds_jsonpath_parser.module

File

feeds_jsonpath_parser.module
View source
<?php

/**
 * Implementation of hook_feeds_plugins().
 */
function feeds_jsonpath_parser_feeds_plugins() {
  $path = drupal_get_path('module', 'feeds_jsonpath_parser');
  $info = array();
  $info['FeedsJSONPathParser'] = array(
    'name' => t('JSONPath parser'),
    'description' => t('Parse JSON using JSONPath.'),
    'handler' => array(
      'parent' => 'FeedsParser',
      'class' => 'FeedsJSONPathParser',
      'file' => 'FeedsJSONPathParser.inc',
      'path' => $path,
    ),
  );
  return $info;
}

/**
 * Implementation of hook_enable().
 *
 * Clear Feed's plugin cache so that this plugin shows up.
 */
function feeds_jsonpath_parser_enable() {
  cache_clear_all('plugins:feeds:plugins', 'cache');
}

Functions