You are here

function _recipe_uninstall_node_type in Recipe 7.2

Uninstalls the recipe node type.

1 call to _recipe_uninstall_node_type()
recipe_uninstall in ./recipe.install
Implements hook_uninstall().

File

includes/recipe.node_type.inc, line 483
Contains functions to install and uninstall the recipe node type.

Code

function _recipe_uninstall_node_type() {
  $fields = array(
    'recipe_description',
    'recipe_instructions',
    'recipe_notes',
    'recipe_source',
    'recipe_prep_time',
    'recipe_cook_time',
    'recipe_ingredient',
  );
  foreach ($fields as $field) {
    field_delete_field($field);
    watchdog('recipe', 'Deleted the :field_name field from all content type instances.', array(
      ':field_name' => $field,
    ));
  }
}