You are here

function _merci_staff_potential_references in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.2

Same name and namespace in other branches
  1. 8.2 modules/merci_staff/merci_staff.module \_merci_staff_potential_references()
  2. 6.2 modules/merci_staff/merci_staff.module \_merci_staff_potential_references()
1 call to _merci_staff_potential_references()
merci_staff_autocomplete in modules/merci_staff/merci_staff.module
Menu callback; Retrieve a JSON object containing autocomplete suggestions for existing users.

File

modules/merci_staff/merci_staff.module, line 185
merci_staff functions

Code

function _merci_staff_potential_references($field, $string = '', $exact_string = FALSE) {
  static $results = array();
  $references = _merci_staff_potential_references_standard($field, $string, $exact_string);

  // Store the results.
  $results[$field['field_name']][$string][$exact_string] = $references;
  return $results[$field['field_name']][$string][$exact_string];
}