query( $sql );
return ($results);
}
/* -----------------------------------------------------------*/
/* This is the amr ical uninstall file */
function amr_users_uninstall() {
global $wpdb;
if (function_exists ('delete_option')) { // what about multi site?
if (delete_option ('amr-users')) echo '
'.__('Deleting number of lists and names in database','amr-users').'
';
if (delete_option ('amr-users'.'-no-lists')) echo ''.__('Deleting all lists settings in database','amr-users').'
';
if (delete_option ('amr-users-nicenames')) echo ''.__('Deleting all nice name settings in database','amr-users').'
';
if (delete_option ('amr-users-cache-status')) echo ''.__('Deleting cache status in database','amr-users').'
';
if (delete_option ('amr-users-cachedlists')) echo ''.__('Deleting cached lists info in database','amr-users').'
';
}
if (function_exists ('wp_clear_scheduled_hook')) {
wp_clear_scheduled_hook('amr_regular_reportcacheing');
if (is_multisite()) wp_clear_scheduled_hook('amr_network_regular_reportcacheing');
echo ''.__('Removed scheduled action','amr-users').'
';
}
if (ameta_cache_drop($wpdb->prefix . "amr_reportcache")) echo ''.__('Deleted cache table','amr-users').'
';
if (ameta_cache_drop($wpdb->prefix . "amr_reportcachelogging")) echo ''.__('Deleted cache log table','amr-users').'
';;
return (true);
}
/* -------------------------------------------------------------------------------------------------------------*/