function recipe_content_extra_field_weight in Recipe 6
1 call to recipe_content_extra_field_weight()
- recipe_view in ./
recipe.module - Implementation of hook_view().
File
- ./
recipe.module, line 1814 - recipe.module - share recipes
Code
function recipe_content_extra_field_weight($pseudo_field_name) {
if (function_exists('content_extra_field_weight')) {
return content_extra_field_weight('recipe', $pseudo_field_name);
}
else {
$recipe_fields = recipe_content_extra_fields('recipe');
if (isset($recipe_fields[$pseudo_field_name]['weight'])) {
return $recipe_fields[$pseudo_field_name]['weight'];
}
else {
return 0;
}
}
}