You are here

feeds_querypath_parser.module in Feeds QueryPath Parser 6

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

File

feeds_querypath_parser.module
View source
<?php

/**
 * Implementation of hook_feeds_plugins().
 */
function feeds_querypath_parser_feeds_plugins() {
  $info = array();
  $info['FeedsQueryPathParser'] = array(
    'name' => t('QueryPath parser'),
    'description' => t('Parse XML or HTML using QueryPath.'),
    'handler' => array(
      'parent' => 'FeedsParser',
      'class' => 'FeedsQueryPathParser',
      'file' => 'FeedsQueryPathParser.inc',
      'path' => drupal_get_path('module', 'feeds_querypath_parser'),
    ),
  );
  return $info;
}

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

Functions