You are here

function feedapi_node_type in FeedAPI 6

Same name and namespace in other branches
  1. 5 feedapi.module \feedapi_node_type()

Implementation of hook_node_type().

File

./feedapi.module, line 186
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;
  }
}