'entity'=>array('type'=>'entity','label'=>t('The feeds import item to be marked as skipped')),
),
'access callback'=>'feeds_rules_access_callback',
),
);
}
/**
* Mark feeds import item as skipped.
*/
functionfeeds_action_skip_item($entity_wrapper){
$entity=$entity_wrapper->value();
if(isset($entity->feeds_item)){
$entity->feeds_item->skip=TRUE;
}
}
/**
* Help callback for the skip action.
*/
functionfeeds_action_skip_item_help(){
returnt("This action allows skipping certain feed items during feeds processing, i.e. before an imported item is saved. Once this action is used on a item, the changes to the entity of the feed item are not saved.");
}
/**
* Access callback for the feeds rules integration.