function boxes_add in Boxes 7.2
Add box page callback
1 string reference to 'boxes_add'
- boxes_menu in ./
boxes.module - Implements hook_menu().
File
- includes/
boxes.pages.inc, line 20 - Box Functions
Code
function boxes_add($type) {
$box = boxes_create(array(
'type' => $type,
));
$box_type = boxes_type_load($type);
drupal_set_title(t('Create @type block', array(
'@type' => $box_type
->getLabel(),
)), PASS_THROUGH);
return drupal_get_form('boxes_form', $box, $type);
}