function msnf_field_overview_row_region in Multistep Nodeform 7
Returns the region to which a row in the 'Manage fields' screen belongs.
Parameters
array $row: A field or step row
Return value
string The current region.
1 string reference to 'msnf_field_overview_row_region'
- msnf_field_ui_form_params in includes/
msnf.field_ui.inc - Helper function to get the form parameters to use while building the fields overview form.
File
- includes/
msnf.field_ui.inc, line 482 - msnf.field_ui.inc is a file that contains most functions needed on the Fields UI Manage forms (display and fields).
Code
function msnf_field_overview_row_region($row) {
switch ($row['#row_type']) {
case 'formstep':
return 'main';
case 'add_new_step':
// If no input in 'label', assume the row has not been dragged out of the
// 'add new' section.
if (empty($row['label']['#value'])) {
return 'add_new';
}
return 'main';
}
}