_blog_post_exists
modules/blog/blog.module, строка 185
- Версии
- 6
_blog_post_exists($account)
Helper function to determine if a user has blog posts already.
Код
<?php
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));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии