You are here

function recipe_node_sanitize in Recipe 7.2

Same name and namespace in other branches
  1. 7 recipe.module \recipe_node_sanitize()

Sanitizes recipe data for display.

All recipe fields should be run through one of the Drupal data checks.

1 call to recipe_node_sanitize()
recipe_view in ./recipe.module
Implements hook_view().

File

./recipe.module, line 1156
Contains functions for Recipe node CRUD and display.

Code

function recipe_node_sanitize(&$node) {
  if (!empty($node->recipe_yield_unit)) {
    $node->recipe_yield_unit = filter_xss($node->recipe_yield_unit, array());
  }
}