You are here

function feed_import_feed_import_filter_info in Feed Import 7.3

Same name and namespace in other branches
  1. 8 feed_import.module \feed_import_feed_import_filter_info()

Implements hook_feed_import_filter_info().

File

./feed_import.module, line 795
User interface, cron functions for feed_import module

Code

function feed_import_feed_import_filter_info() {
  return array(
    'default' => array(
      'name' => t('Feed Import filter'),
      'description' => t('Filter class provided by Feed Import module'),
      'inherit_options' => FALSE,
      'class' => 'FeedImportMultiFilter',
      'options' => array(
        'param' => array(
          '#title' => t('Filter param placeholder'),
          '#description' => t('The value of field placeholder used for filter params.'),
          '#default_value' => '[field]',
          '#type' => 'textfield',
          '#required' => TRUE,
          '#element_validate' => array(
            'feed_import_element_validate_not_numeric',
          ),
        ),
        'include' => array(
          '#type' => 'textarea',
          '#title' => t('Include the following PHP files'),
          '#description' => t('This files should contain additional filters.') . ' ' . t('Enter paths to PHP files (one per line).') . ' ' . t('Paths are relative to @dir folder.', array(
            '@dir' => _feed_import_base_get_filters_dir(),
          )) . '<br />' . t('You can use absolute paths by prepending /.'),
          '#rows' => 5,
          '#default_value' => '',
        ),
      ),
    ),
  );
}