Submitted by Anna (not verified) on Wed, 11/04/2009 - 10:22.
Hi, Irakli,
Just spent a couple of hours trying to make block_edit to work with my view-blocks.
I'd like to comment on it.
It has a subtle error - if the viewname-display combination (used as delta by the table of blocks) has a length more than 32 chars, the link "Configure" doesnt work correctly.
This is because in this situation, Views2 uses not the viewname-display, but md5(viewname-display) as the delta.
So, the block_edit_views_admin_links alter must sound something like this:
Bug in block_edit module
Hi, Irakli,
Just spent a couple of hours trying to make block_edit to work with my view-blocks.
I'd like to comment on it.
It has a subtle error - if the viewname-display combination (used as delta by the table of blocks) has a length more than 32 chars, the link "Configure" doesnt work correctly.
This is because in this situation, Views2 uses not the viewname-display, but md5(viewname-display) as the delta.
So, the block_edit_views_admin_links alter must sound something like this:
if (strpos($view->current_display, 'block') === 0) {
$delta = $view->name .'-'. $view->current_display;
if (strlen($delta) > 32)
{
$delta = md5($delta);
}
$links[] = array(
'title' => t('Configure'),
'alt' => t("Configure this block"),
'href' => 'admin/build/block/configure/views/'. $delta,
'query' => drupal_get_destination(),
);
}
Not bad, it's a great module
Not bad, it's a great module for my download games site