function boxes_factory in Boxes 7
Same name and namespace in other branches
- 6 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_view in ./
boxes.module - Implements hook_block_view().
- boxes_boxes_box_load_alter in ./
boxes.module - Implements hook_boxes_box_load_alter().
- boxes_box_form_submit in ./
boxes.module - Submit handler for the inline form.
File
- ./
boxes.module, line 364 - Core functionality for boxes module.
Code
function boxes_factory($plugin_key, $values = array()) {
module_load_include('inc', 'boxes', 'plugins/boxes_box');
return boxes_box::factory($plugin_key, $values);
}