You are here

function feeds_rules_action_info in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds.rules.inc \feeds_rules_action_info()

Implements hook_rules_action_info().

File

./feeds.rules.inc, line 61
Rules integration.

Code

function feeds_rules_action_info() {
  return array(
    'feeds_import_feed' => array(
      'base' => 'feeds_action_import_feed',
      'label' => t('Execute feeds importer'),
      'parameter' => array(
        'importer' => array(
          'type' => 'text',
          'label' => t('Feeds importer'),
          'options list' => 'feeds_importer_list',
          'default mode' => 'input',
        ),
        'feed_nid' => array(
          'type' => 'node',
          'label' => t('Feed node'),
          'default mode' => 'input',
          'description' => t("The feed node, if the importer is attached to a content type. Put in '0' if the importer is not attached to a content type."),
        ),
      ),
      'group' => t('Feeds'),
      'access callback' => 'feeds_rules_access_callback',
    ),
    'feeds_skip_item' => array(
      'base' => 'feeds_action_skip_item',
      'label' => t('Skip import of feeds item'),
      'group' => t('Feeds'),
      'parameter' => array(
        'entity' => array(
          'type' => 'entity',
          'label' => t('The feeds import item to be marked as skipped'),
        ),
      ),
      'access callback' => 'feeds_rules_access_callback',
    ),
  );
}