mailhandler_default.feeds_importer_default.inc in Mailhandler 6.2
Same filename and directory in other branches
Defines mailhandler_nodes importer.
File
modules/mailhandler_default/mailhandler_default.feeds_importer_default.incView source
<?php
/**
* @file
* Defines mailhandler_nodes importer.
*/
/**
* Implementation of hook_feeds_importer_default().
*/
function mailhandler_default_feeds_importer_default() {
$export = array();
$feeds_importer = new stdClass();
$feeds_importer->disabled = FALSE;
/* Edit this to true to make a default feeds_importer disabled initially */
$feeds_importer->api_version = 1;
$feeds_importer->id = 'mailhandler_nodes';
$feeds_importer->config = array(
'name' => 'Mailhandler nodes',
'description' => 'Imports nodes from a Mailhandler mailbox',
'fetcher' => array(
'plugin_key' => 'MailhandlerFetcher',
'config' => array(
'filter' => 'MailhandlerFiltersNodes',
),
),
'parser' => array(
'plugin_key' => 'MailhandlerParser',
'config' => array(
'authenticate_plugin' => 'MailhandlerAuthenticateDefault',
'available_commands' => 'status',
),
),
'processor' => array(
'plugin_key' => 'FeedsNodeProcessor',
'config' => array(
'content_type' => 'story',
'expire' => '-1',
'author' => 0,
'mappings' => array(
0 => array(
'source' => 'subject',
'target' => 'title',
'unique' => FALSE,
),
1 => array(
'source' => 'authenticated_uid',
'target' => 'uid',
'unique' => FALSE,
),
2 => array(
'source' => 'status',
'target' => 'status',
'unique' => FALSE,
),
3 => array(
'source' => 'body_text',
'target' => 'body',
'unique' => FALSE,
),
4 => array(
'source' => 'message_id',
'target' => 'guid',
'unique' => 1,
),
),
'update_existing' => '0',
'input_format' => 'plain_text',
),
),
'content_type' => 'mailhandler_source',
'update' => 0,
'import_period' => '900',
'expire_period' => 3600,
'import_on_create' => 1,
);
$export['mailhandler_nodes'] = $feeds_importer;
return $export;
}
Functions
Name | Description |
---|---|
mailhandler_default_feeds_importer_default | Implementation of hook_feeds_importer_default(). |