Adam 2009-01-30
Documentation » Actiona_new
Adds new node/user to the database using values available trough POST. If no allowed values are available, no action is done.
bool|int a_new( [bool|string $type = false, array $allowed = array('title'), array $required = true, bool $redirect = true, bool|array $files = false] )
Parameters
- bool|string $type Newly added node type, false for current node type, true for setting via POST
- array $allowed Fields allowed via POST
- array $required Fields required inside of POST
- bool $redirect Whether redirect to newly created node on success
- bool|array $files File attachment/avatar limits, false for no files allowed
Returns
- bool|int TRUE on success, error code on failure, FALSE if no allowed values were specified
Last edited 2009-02-24 16:40:27
