The live template for hook_block_save returns a $form variable. This seems like an accidental copy-paste from hook_block_configure.

The output is:

/**
 * Implements hook_block_save().
 */
function mymodule_block_save($delta = '', $edit = array()) {
  $form = array();

  switch ($delta) {
    case '':
      break;
  }

  return $form;
}

but should be:

/**
 * Implements hook_block_save().
 */
function mymodule_block_save($delta = '', $edit = array()) {
  switch ($delta) {
    case '':
      break;
  }
}

Comments

sweetchuck’s picture

Status: Active » Closed (fixed)
marcvangend’s picture

And thank you for the quick response!