You are here

function boxes_save in Boxes 7.2

Inserts or updates a boxes object into the database.

Parameters

$boxes: The boxes object to be inserted.

Return value

Failure to write a record will return FALSE. Otherwise SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed.

2 calls to boxes_save()
BoxTests::testBoxesAPI in ./boxes.test
Test the boxes API
BoxTests::testRendering in ./boxes.test
Tests viewing boxes.

File

./boxes.module, line 621

Code

function boxes_save(Box $box) {
  return $box
    ->save();
}