You are here

function _values_name_exists in Values 7

Render API callback: Checks if the value set machine name is taken.

Parameters

$value: The machine name.

Return value

Whether or not the field machine name is taken.

2 string references to '_values_name_exists'
values_form in ./values.module
Form for adding a new value set.
values_import_form in ./values.module
Import a value list

File

./values.module, line 995
API for managing reusable value sets.

Code

function _values_name_exists($value) {
  $value_set = values_load($value);
  if ($value_set) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}