API docs     >     Content Blocks     >     Entrymasks

Entrymasks->add

Description

add ( $parentEntrymaskId, $folder = 0, $name = 'New Entrymask' )
Adds an Entrymask

Parameters

$parentEntrymaskId
int
Parent Entrymask Id
$folder
int
Specifies if a folder should be created (1 for folder, 0 for Entrymask)
$name
string
(optional) Entrymask name

Returns

int|false
New Entrymask Id or FALSE in case of an error