function recipe_update_7200 in Recipe 7.2
Migrate the recipe_help variable to the recipe node type help setting.
File
- ./
recipe.install, line 403 - Install, update and uninstall functions for the recipe module.
Code
function recipe_update_7200() {
$recipe_help = variable_get('recipe_help', '');
if (!empty($recipe_help)) {
$node_type = node_type_load('recipe');
if (empty($node_type->help)) {
$node_type->help = $recipe_help;
node_type_save($node_type);
}
}
variable_del('recipe_help');
}