function _blog_post_exists
7.x blog.module | _blog_post_exists($account) |
6.x blog.module | _blog_post_exists($account) |
Helper function to determine if a user has blog posts already.
1 call to _blog_post_exists()
- blog_page_user_access in drupal-6.x/
modules/ blog/ blog.module - Access callback for user blog pages.
File
- drupal-6.x/
modules/ blog/ blog.module, line 185 - Enables keeping an easily and regularly updated web page or a blog.
Code
function _blog_post_exists($account) {
return (bool) db_result(db_query_range(db_rewrite_sql("SELECT 1 FROM {node} n WHERE n.type = 'blog' AND n.uid = %d AND n.status = 1"), $account->uid, 0, 1));
}