You are here

function boxes_block_configure in Boxes 7

Implements hook_block_configure().

File

./boxes.module, line 123
Core functionality for boxes module.

Code

function boxes_block_configure($delta) {
  if ($delta && strpos($delta, 'boxes_add__') !== 0) {
    if ($box = boxes_box_load($delta)) {
      $form_state = array(
        'box' => $box,
      );
      if ($box
        ->options_form($form_state)) {
        $form = boxes_box_form(array(), $form_state);
        unset($form['submit']);
        return $form;
      }
    }
  }
}