<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">well it is mostly my confusion really,
      I had a module registering a link in the enabled event and
      removing it in the disabled event, I was surprised that it wasn't
      registered on first install of the module.<br>
      Not the end of the world and I can see that things like PBXmanager
      already do the same things in module.postinstall as they do in
      module.enabled, so changing it now would be a bit of a mess as
      existing modules might register links twice.<br>
      <br>
      Alan.<br>
      <br>
      On 22/09/14 09:40, Prasad wrote:<br>
    </div>
    <blockquote
cite="mid:CAMeS7pn3yjbcooSopj5uLDKqFQk-7FFKJB+3d-1U3nxCGKTNoA@mail.gmail.com"
      type="cite">
      <div dir="ltr">Having it separate helps to define the flow by
        incoming type - else the states need to be tracked too. 
        <div>Is there any use-case to consider?</div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div><span
style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><b>Connect
              with us on: </b><a moz-do-not-send="true"
              href="http://twitter.com/vtigercrm"
              style="color:rgb(0,0,204)" target="_blank">Twitter</a> <b>I</b> <a
              moz-do-not-send="true"
              href="http://www.facebook.com/pages/vtiger/226866697333578?sk=wall"
              style="color:rgb(0,0,204)" target="_blank">Facebook</a> <b>I</b> <a
              moz-do-not-send="true" href="https://blogs.vtiger.com/"
              style="color:rgb(0,0,204)" target="_blank">Blog</a><b> I</b> <a
              moz-do-not-send="true"
              href="http://wiki.vtiger.com/index.php/Main_Page"
              style="color:rgb(0,0,204)" target="_blank">Wiki</a> <b>I </b><a
              moz-do-not-send="true"
              href="https://discussions.vtiger.com"
              style="color:rgb(0,0,204)" target="_blank">Forums </a><b>I</b> <a
              moz-do-not-send="true" href="https://www.vtiger.com/"
              style="color:rgb(0,0,204)" target="_blank">Website</a></span></div>
        <br>
        <div class="gmail_quote">On Mon, Sep 22, 2014 at 2:00 PM, Alan
          Bell <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:alan.bell@libertus.co.uk" target="_blank">alan.bell@libertus.co.uk</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">I think
            that when I install a module, the module.enabled event
            doesn't occur. Should it? I think that it would be
            appropriate to call the enabled event after the postinstall,
            so that anything that should be done when enabling the
            module happens. Of course I can just make it happen in the
            postinstall too. Same goes for module.disabled and
            preuninstall, shouldn't that call the module.disabled stuff
            first?<span class="HOEnZb"><font color="#888888"><br>
                <br>
                Alan.<br>
                <br>
                -- <br>
                Libertus Solutions<br>
                <a moz-do-not-send="true" href="http://libertus.co.uk"
                  target="_blank">http://libertus.co.uk</a><br>
                <br>
                _______________________________________________<br>
                <a moz-do-not-send="true" href="http://www.vtiger.com/"
                  target="_blank">http://www.vtiger.com/</a><br>
              </font></span></blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Libertus Solutions
<a class="moz-txt-link-freetext" href="http://libertus.co.uk">http://libertus.co.uk</a></pre>
  </body>
</html>