When looking at the API documentation in hook_ds_fields_info() for the block properties you'll find it described as:

      // block: the module and delta of the block, only for block fields.
      'block' => 'user-menu',

Showing that the block is defined as "[module]-[delta]" (as is consistent with the block API), however the rendering function uses a pipe to split the module from the delta.

/**
 * Render a block field.
 */
function ds_render_block_field($field) {
  // Invoke the block_view hook of the module.
  list($module, $delta) = explode('|', $field['properties']['block']);
  $block = module_invoke($module, 'block_view', $delta);

Since changing the format will break the API, I'd opt to only change the documentation for the 7.x-2.x line.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Erik Frèrejean’s picture

Attached a patch, that changes the documentation.

Erik Frèrejean’s picture

Status: Active » Needs review

aspilicious’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.