function _msnf_field_get_step in Multistep Nodeform 7
Same name and namespace in other branches
- 6 includes/msnf.steps.inc \_msnf_field_get_step()
Helper function to get the step name for a field.
Parameters
<string> $content_type: Content type the field belongs to.
<string> $field_name: Name of field.
Return value
<mixed> Name of step the field belongs to or FALSE if the field doesn't belong to a form step.
1 call to _msnf_field_get_step()
- msnf_step_update_fields in includes/
msnf.steps.inc - Update field mapping for steps.
File
- includes/
msnf.steps.inc, line 334 - Step crud functions.
Code
function _msnf_field_get_step($content_type, $field_name) {
return db_result(db_query("SELECT step_name FROM {msnf_step_fields} WHERE type_name = '%s' AND field_name = '%s'", $content_type, $field_name));
}