| 1 |
<?php |
<?php |
| 2 |
// $Id: feedapi_mapper.admin.inc,v 1.1.2.8 2009/08/18 19:11:44 alexb Exp $ |
// $Id: feedapi_mapper.admin.inc,v 1.1.2.10 2009/09/18 12:52:33 aronnovak Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 5 |
* Administration-related functions for FeedAPI Mapper |
* Administration-related functions for FeedAPI Mapper |
| 38 |
$toggle_unique_path = 'feedapi-mapper/'. $type_url_str .'/unique/'; |
$toggle_unique_path = 'feedapi-mapper/'. $type_url_str .'/unique/'; |
| 39 |
} |
} |
| 40 |
if (isset($form['#mapping']['mapping'])) { |
if (isset($form['#mapping']['mapping'])) { |
| 41 |
$feed_settings = feedapi_get_settings($form['#node']->type, $form['#node']->vid); |
$active_processors = _feedapi_mapper_get_active_processors($form['#node']->type); |
|
$active_processors = array_keys($feed_settings['processors']); |
|
| 42 |
foreach ($form['#mapping']['mapping'] as $feed_path => $node_path) { |
foreach ($form['#mapping']['mapping'] as $feed_path => $node_path) { |
| 43 |
$target = unserialize($node_path); |
$target = unserialize($node_path); |
| 44 |
if (function_exists($target[0] .'_feedapi_mapper')) { |
if (function_exists($target[0] .'_feedapi_mapper')) { |