You are here

function msnf_field_info_max_weight in Multistep Nodeform 7

Implements hook_field_info_max_weight().

File

includes/msnf.field_ui.inc, line 671
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_info_max_weight($entity_type, $bundle, $context) {
  $weights = array();
  foreach (msnf_info_steps($entity_type, $bundle, $context) as $step) {
    $weights[] = $step->weight;
  }
  return $weights ? max($weights) : NULL;
}