Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When displaying views blocks the $object->display_handler attribute doesn't exist, so the following line in views_admin_link() will return errors:
if ($display_id = $object->display_handler->display->id) {
Comment | File | Size | Author |
---|---|---|---|
#1 | admin-n906790.patch | 819 bytes | DamienMcKenna |
Comments
Comment #1
DamienMcKennaHere's a patch for a cleaner way of handling the logic.
Patch sponsored by Bluespark Labs.
Comment #2
DamienMcKennaComment #3
tim.plunkettDamienMcKenna, king of undefined index errors. Works great with DRUPAL-6--1.
Comment #4
DamienMcKenna@tim.plunkett: thanks =)