You are here

function bean_create in Bean (for Drupal 7) 7

Helper to easily create a bean.

Parameters

$values array: Array with the following keys:

  • "arguments" - Array with arguments that should be replaced on run time in the message type.

Return value

Bean

4 calls to bean_create()
BeanTests::testBeanAPI in tests/BeanTests.test
Test the bean API.
BeanTests::testRendering in tests/BeanTests.test
Tests viewing beans.
bean_add in includes/bean.pages.inc
Add bean page callback
bean_services_create in ./bean.services.inc
Adds a new bean to a node and returns the bid.

File

./bean.module, line 826
Block Entity

Code

function bean_create($values) {
  return entity_create('bean', $values);
}