draft_count

Summary

Fetches the number of drafts that belong to the current user.

Usage

fetch( 'content', 'draft_count' )

Returns

The number of drafts (as an integer) that belong to the current user.

Description

This function fetches the number of drafts that belong to the current user and returns it as an integer.

Examples

Example 1

{def $drafts=fetch( 'content', 'draft_count' )}
The current user has {$drafts} drafts.

Outputs the number of drafts that belong to the current user.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.