$output.='<p>'.t('This module provides enhanced auto complete widget which is better in performance as compare to default auto complete, as it name suggests that searching based on json, so instead of get result from database it searches from json and gives fast results with better user experience.').'</p>';
'#description'=>t('Select the method used to collect autocomplete suggestions. Note that <em>Contains</em> can cause performance issues on sites with thousands of nodes.'),
// Update user to administrator on cron and drush command.
if($cron&&!$user->uid){
if(!$user=user_load(1)){
$uid=db_query("select users.uid from {users} INNER JOIN {users_roles} ON users.uid = users_roles.uid INNER JOIN {role_permission} ON role_permission.rid = users_roles.rid WHERE role_permission.permission LIKE 'administer site configuration' LIMIT 1")->fetchField();
$user=user_load($uid);
}
}
if(empty($destination)){
$destination=file_default_scheme().'://';
}
if(!file_valid_uri($destination)){
watchdog('file','The data could not be saved because the destination %destination is invalid. This may be caused by improper use of json_autocomplete_file_save_data() or a missing stream wrapper.',array('%destination'=>$destination));
drupal_set_message(t('The data could not be saved, because the destination is invalid. More information is available in the system log.'),'error');