As someone who has an interest in extending and modifying this module for other purposes, it would be great to have a "hook_support" to let other modules modify what Support does. At the very least, using "drupal_alter" on data structures at key points would be helpful. The ticket listing pages Support generates, in particular, would be nice to modify. (I suppose another way to go might be to implement them as Views instead of custom pages.)

Comments

jeremy’s picture

Status: Active » Fixed

Okay, patch committed:
http://drupal.org/cvs?commit=294166

There was already one drupal_alter call, I've added 4 new ones with the above commit. They are as follows:

  • support_client_load: alter the client object after loading it from the database
  • support_ticket_load: alter the ticket object after loading it from the database
  • support_clients_load: alter the client list after it is loaded from the database
  • support_page_list_ticket: alter tickets when they are being displayed in ticket listings
  • support_fetch_message: alter messages as they are downloaded from the server

Grep the code for drupal_alter to learn more.

Ideally some of these functions should probably be combined so you don't have to alter in multiple places, but that's a bigger effort.

Feel free to request additional hooks as you extend this module.

jeremy’s picture

BTW: I just spotted your Support Deadline module. Please ping me if you create any other support modules so I can link to your projects from the main support project page.

Adding a link to Support Deadline now:
http://drupal.org/project/support_deadline

gengel’s picture

Awesome, thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.