function _blogapi_space_used in Blog API 7
1 call to _blogapi_space_used()
- blogapi_metaweblog_new_media_object in ./
blogapi.module - Blogging API callback. Inserts a file into Drupal.
File
- ./
blogapi.module, line 1031 - Enable users to post using applications that support XML-RPC blog APIs.
Code
function _blogapi_space_used($uid) {
return db_query('SELECT SUM(filesize) FROM {blogapi_files} f WHERE f.uid = :uid', array(
':uid' => $uid,
))
->fetchField();
}