How to add a Custom module to My Activity Stream

I want updates in Tasks module to show up in Activity Stream just like contacts module. How can I achieve this? Which files should I edit?

Please try with this.

  1. create file whatever name in below can use existing file also located in below path.

  2. In this file, add the following code:


  3. Save your changes to this file.

  4. Login as an Administrator user and navigate to Admin > Repair.

  5. Click the ‘Quick Repair and Rebuild’ option.


It is not working. Is there any mistakes in your code?