Closed (fixed)
Project:
Display Suite
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 May 2012 at 18:23 UTC
Updated:
3 Jun 2012 at 11:21 UTC
When creating fields using hook_ds_fields_info(), take for example:
$fields['my_view_block'] = array(
'title' => t('My View Block'),
'field_type' => DS_FIELD_TYPE_BLOCK,
'ui_limit' => array('user|full'),
'properties' => array(
'block' => 'views|my_view-block_1',
'block_render' => DS_BLOCK_TEMPLATE,
),
);
The field does render the block with the contextual links, but it loses the view's contextual links (ie: "Edit view"). This patch allows the field to render the block with any inherited contextual links that were generated by the hook_block_view() call.
| Comment | File | Size | Author |
|---|---|---|---|
| ds-render-block-contextual-links.patch | 1.61 KB | markhalliwell |
Comments
Comment #1
swentel commentedInteresting, never fully investigated that, will review and test this more next week and commit this then.
Comment #2
swentel commentedCommitted and pushed, thanks!