On a views block settings page like admin/structure/block/manage/views/product_entities-block_1/configure, there should be a link to the respective views_ui page, e.g. admin/structure/views/view/product_entities/edit/block_1.

This should be pretty simple using hook_block_configure().

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

donquixote created an issue. See original summary.

donquixote’s picture

Status: Active » Needs review
FileSize
1.41 KB

I put the link into a fieldset. But I don't care much about it.

donquixote’s picture

A link in the other direction could be added from views_ui.

donquixote’s picture

Changes:
- Check access.
- Check if views_ui is enabled.
- Check if view_name or display_id are empty string.

donquixote’s picture

A link in the other direction could be added from views_ui.

This would be a separate issue.

DamienMcKenna’s picture

DamienMcKenna’s picture

donquixote’s picture

> A minor tweak.

Ok for me to introduce one less local variable.

donquixote’s picture

Looking at the patch again, I think in the current version it will only work for short view names + display names.

In views_block_view():

function views_block_view($delta) {
  // If this is 32, this should be an md5 hash.
  if (strlen($delta) == 32) {
    $hashes = variable_get('views_block_hashes', array());
    if (!empty($hashes[$delta])) {
      $delta = $hashes[$delta];
    }
  }

We need to do the same logic as in views_block_view(), I think.

DamienMcKenna’s picture

Status: Needs review » Needs work

Good catch, thanks.

DamienMcKenna’s picture

DamienMcKenna’s picture

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed. Thanks!

Status: Fixed » Closed (fixed)

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