You are here

function blogapi_space_used in Blog API 7.2

Helper function. Return the amount of space used by a given user.

1 call to blogapi_space_used()
blogapi_metaweblog_new_media_object in modules/blogapi_metaweblog/blogapi_metaweblog.module
Service callback for metaWeblog.newMediaObject

File

./blogapi.module, line 427
Enable users to post using applications that support BlogAPIs.

Code

function blogapi_space_used($uid) {
  return db_query('SELECT SUM(filesize) FROM {blogapi_files} f WHERE f.uid = :uid', array(
    ':uid' => $uid,
  ))
    ->fetchField();
}