You are here

function apachesolr_user_get_profile_info in Apachesolr User 6

1 call to apachesolr_user_get_profile_info()
apachesolr_user_user_to_document in ./apachesolr_user.module
Given a node ID, return a document representing that node.

File

./apachesolr_user.module, line 234

Code

function apachesolr_user_get_profile_info($field_name) {
  static $info = array();
  if (!isset($info[$field_name])) {
    $result = db_query('SELECT type, visibility, options, name from profile_fields where name = "%s"', $field_name);

    // There should only be one
    $info[$field_name] = db_fetch_array($result);
  }
  return $info[$field_name];
}