<div dir="ltr">All management / development around Calendar module is completely crazy.</div><div class="gmail_extra"><br><div class="gmail_quote">2015-11-12 11:58 GMT+01:00 Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I would like to add new records (custom modules) to the Shared Calendar list.<br>
<br>
But looking at the Calendar_Feed_Action class it appears to me that all of the types are hard-coded...<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
switch ($type) {<br>
        case 'Events': $this->pullEvents($start, $end, $result,$userid,$color,$textColor); break;<br>
        case 'Calendar': $this->pullTasks($start, $end, $result,$color,$textColor); break;<br>
        case 'Potentials': $this->pullPotentials($start, $end, $result, $color, $textColor); break;<br>
        case 'Contacts':<br>
                if($request->get('fieldname') == 'support_end_date') {<br>
                        $this->pullContactsBySupportEndDate($start, $end, $result, $color, $textColor);<br>
                }else{<br>
                        $this->pullContactsByBirthday($start, $end, $result, $color, $textColor);<br>
                }<br>
                break;<br>
        case 'Invoice': $this->pullInvoice($start, $end, $result, $color, $textColor); break;<br>
        case 'MultipleEvents' : $this->pullMultipleEvents($start,$end, $result,$request->get('mapping'));break;<br>
        case 'Project': $this->pullProjects($start, $end, $result, $color, $textColor); break;<br>
        case 'ProjectTask': $this->pullProjectTasks($start, $end, $result, $color, $textColor); break;<br>
}<br>
</blockquote>
<br>
Is this _really_ the best way to do this? Why on earth are the pullModule functions in this class? They should be part of the target module's model somewhere. That way I could include a custom pullModule function in my own module's class files...<br>
<br>
Maybe I have misunderstood the way this works but if I create a new module that has date parameters in it, how am I supposed to be able to display it on the shared calendar?<br>
<br>
Thanks<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>