You are here

function feedapi_node_feedapi_mapper_default in FeedAPI 6

Implementation of hook_feedapi_mapper_default(). Provides default mapping for FeedAPI Mapper 2.x

File

feedapi_node/feedapi_node.module, line 142
Handle how the feed items are represented as a content Handle the processing of the feed items

Code

function feedapi_node_feedapi_mapper_default() {
  $feedapi_mapper = new stdClass();
  $feedapi_mapper->disabled = FALSE;
  $feedapi_mapper->api_version = 1;
  $feedapi_mapper->param = 'feed';
  $feedapi_mapper->mapping = array(
    'a:1:{i:0;s:11:"description";}' => 'a:2:{i:0;s:4:"node";i:1;s:4:"body";}',
    'a:1:{i:0;s:5:"title";}' => 'a:2:{i:0;s:4:"node";i:1;s:5:"title";}',
  );
  $feedapi_mapper->unique_elements = array(
    'a:1:{i:0;s:11:"description";}' => FALSE,
    'a:1:{i:0;s:5:"title";}' => FALSE,
  );
  return array(
    'feedapi_node' => $feedapi_mapper,
  );
}