I wanted to alter the list of administrative links presented on the overview page for a particular entity [bundle], so I was happy to see it was alterable via hook_panelizer_overview_links_alter(). However, it looks as though the drupal_alter invocation is using an old syntax, so that only the first three of the seven parameters are passed through to alter hook implementations. I changed it as captured in the attached patch (passing the extra vars in an array), and it is working perfectly for me now. This looks like the right approach if I understand the drupal_alter documentation correctly (but feel free to correct me if I don't!).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | panelizer-revising_drupal_alter_usage-2289537-1.patch | 1.25 KB | ndewhurst |
Comments
Comment #1
ndewhurstComment #2
ndewhurstComment #3
ndewhurstComment #4
damienmckennaI had to confirm against the documentation, but yes, drupal_alter() only accepts two alterable arguments, thank you for pointing that out.
Comment #5
damienmckennaCommitted. Thanks!