profile_admin_settings_autocomplete
modules/profile/profile.module, строка 841
- Версии
- 5 – 6
profile_admin_settings_autocomplete($string)
Retrieve a pipe delimited string of autocomplete suggestions for profile categories
Код
<?php
function profile_admin_settings_autocomplete($string) {
$matches = array();
$result = db_query_range("SELECT category FROM {profile_fields} WHERE LOWER(category) LIKE LOWER('%s%%')", $string, 0, 10);
while ($data = db_fetch_object($result)) {
$matches[$data->category] = check_plain($data->category);
}
print drupal_to_js($matches);
exit();
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии