O'Reilly logo

Elgg 1.8 Social Networking by Cash Costello

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Lesson 8: Changing how Elgg does X

This lesson covers using a plugin hook. It also explains how to add administrative settings.

Problem

Groups can have blogs, but only the person who writes the blog post can edit it. You prefer that group blogs work like the pages tool that allow for collaborative editing. Or maybe you would like to create customized notification messages that are sent to your users through e-mail. You also might want to include custom information when people search your site. The common theme here is that Elgg is doing one thing and you would like it to do it differently.

Solution

Use plugin hooks, which are very similar to events. When something occurs, a plugin hook is triggered and the functions that are registered for that plugin ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required