You are here

function boxes_factory in Boxes 6

Same name and namespace in other branches
  1. 7 boxes.module \boxes_factory()

Instantiate box object.

Parameters

$plugin_key: The string id of the boxes plugin.

$values: The values to set on the box.

Return value

a box object.

6 calls to boxes_factory()
boxes_add_form in ./boxes.admin.inc
Generate form for creating new boxes.
boxes_add_form_submit in ./boxes.admin.inc
Submit handler for box_add_form.
boxes_block in ./boxes.module
Implementation of hook_block().
boxes_boxes_load_alter in ./boxes.module
Implementation of hook_boxes_load_alter().
boxes_box_form_submit in ./boxes.module
Submit handler for the inline form.

... See full list

File

./boxes.module, line 231

Code

function boxes_factory($plugin_key, $values = array()) {
  module_load_include('inc', 'boxes', 'plugins/boxes_box');
  return boxes_box::factory($plugin_key, $values);
}