You are here

function shs_json_validation_vocabulary_identifier in Simple hierarchical select 7

Helper function to validate the vocabulary identifier coming from JSON.

Parameters

mixed $identifier: Either a vocabulary ID or an array with the following keys:

  • field_name: Name of field which sends the request.

Return value

bool TRUE if validation passes, otherwise FALSE.

1 string reference to 'shs_json_validation_vocabulary_identifier'
shs_json_callbacks in ./shs.module
Get a list of supported JSON callbacks.

File

./shs.module, line 1188
Provides an additional widget for term fields to create hierarchical selects.

Code

function shs_json_validation_vocabulary_identifier($identifier) {
  return TRUE;
}