You are here

function _msnf_step_name_exists in Multistep Nodeform 7

Render API callback: Checks if a step machine name is taken.

Parameters

<string> $value: The machine name, not prefixed with 'step_'.

Return value

<boolean> Whether or not the step machine name is taken.

1 string reference to '_msnf_step_name_exists'
msnf_add_row in includes/msnf.field_ui.inc
Helper function to add a row in the overview forms.

File

includes/msnf.field_ui.inc, line 553
msnf.field_ui.inc is a file that contains most functions needed on the Fields UI Manage forms (display and fields).

Code

function _msnf_step_name_exists($value) {

  // Prefix with 'step_'.
  $step_name = 'step_' . $value;

  // We need to check inactive steps as well, so we can't use
  // field_info_fields().
  return (bool) msnf_read_steps(array(
    'step_name' => $step_name,
  ), array(
    'include_inactive' => TRUE,
  ));
}