Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

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.

Balazs Halasy (06/02/2004 12:06 pm)

Julia Shymova (27/01/2008 1:06 pm)

Balazs Halasy, Julia Shymova


Comments

There are no comments.