function feedapi_node_type in FeedAPI 5
Same name and namespace in other branches
- 6 feedapi.module \feedapi_node_type()
Implementation of hook_node_type().
File
- ./
feedapi.module, line 150 - Handle the submodules (for feed and item processing) Provide a basic management of feeds
Code
function feedapi_node_type($op, $info) {
switch ($op) {
case 'delete':
variable_del('feedapi_settings_' . $info->type);
variable_del('feedapi_' . $info->type);
break;
case 'update':
if (!empty($info->old_type) && $info->old_type != $info->type) {
$setting = variable_get('feedapi_settings_' . $info->old_type, array());
variable_del('feedapi_settings_' . $info->old_type);
variable_set('feedapi_settings_' . $info->type, $setting);
}
break;
}
}