Need help removing/modifying content for Storm add/edit tickets module

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
Metropolis26's picture

Hi Everyone,

I am trying to modify storm add/edit ticket through the theme if possible. I have narrowed the solution down to the function

function theme_stormticket_view();

I believe I should be able to edit this function to accomplish what I need. However, I change the "theme" name to my theme name, refreshed the cache, edited the function in a few places, and it does not seem to be taking. Nothing I seem to do to that function is changing the html on the add/edit tickets page. Am I in the correct place? What am I doing wrong?

Here is everything that I want to do,

  • I want to remove task, duration unit, duration, price mode, price, price currency, billable, and billed from the view completly.
  • I only want the status, date begin, date end, and assigned to to show up for a particular user role.

Thanks,
Metropolis

Comments

Wow

Metropolis26's picture

Is this group always this dead? I am not really sure where else I can get help on this......

Not dead...

norm1710's picture

...but very busy - will have spare time in a copule of weeks when I intend to start in on these Q's with a passion

I hear ya

Metropolis26's picture

I know you guys are probably working hard on the drupal 7 version, I am very excited about it and I appreciated everyones work on this project, it is turning out to be one of the best solutions out there that is open source.

Is there any chance you could just help me with this question? I am really trying to get this working as quick as possible so that I can start using it how I want to.

The only 2 functions I see in storm tickets that have "theme_" on them are, "theme_stormticket_view" and "theme_stormticket_list". I modified the list function just fine and it is working, but i need to be able to modify the editing/adding tickets area like the above. The "theme_stormticket_view" function seems to only change the "view ticket" page. What can I do to change the edit/add page?

The way to solve your problem

juliangb's picture

The way to solve your problem is to create a really small module that is site specific. In this module, you implement hook_form_alter - inside this function, check by role and hide fields as applicable.

My site: http://julian.granger-bevan.me.
Maintainer of: Drupal PM (Project Management).
You can contribute towards my Drupal work at http://www.gittip.com/juliangb/.

This might be what you are looking for!!!

blade003's picture

Thanks to a code supplied by the user "raintonr" I achieved something similar by using a customised module and a hook to hide fields on the Task, Ticket and Project forms.

Just follow this thread and see if it helps.

http://drupal.org/node/254145#comment-3834888

Project Management Module

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week