[development] Module install / database schema doubt

Lee Rowlands contact at rowlandsgroup.com
Thu Mar 17 04:57:22 UTC 2011


Hi Austin
The install hook won't run when you enable the module if you've already
enabled it once before.
There is an uninstall tab on the modules page - use that and uninstall
your module then reenable it - or use drush to uninstall it (note
uninstall does not equal disable).
Lee

On Thu, 2011-03-17 at 10:18 +0530, Austin Einter wrote:

> Hi Lee
> 
> Steps followed as below.
> 
> 1. Wrote the custom module without install file.
> 2. Enabled the module.
> 3. After the front end (form) was finalized, I wrote .install file.
> 4. Disabled module.
> 5. Cleared cache
> 6. Enabled module.
> 
> So with this, I see the database issue.
> 
> -------------------------
> 
> Coming back to devel module usage, I will check it and revert back.
> 
> Thanks
> Austin
> 
> 
> 
> 
> On Thu, Mar 17, 2011 at 9:25 AM, Lee Rowlands
> <contact at rowlandsgroup.com> wrote:
> 
>         Hi Austin
>         hook_install only runs once, when the module is first enabled
>         - is it possible that you enabled it and then added the
>         install hooks?
>         If so, it would be worth uninstalling the module and
>         reinstalling it. (Uninstalling is not disabling it).
>         Devel module provides a nice utility to let you easily
>         uninstall and reinstall a module to aid with debugging your
>         install files.
>         
>         Lee
>         
>         
>         On Thu, 2011-03-17 at 09:14 +0530, Austin Einter wrote: 
>         
>         >  
>         > Can somebody help me to understand, what could be the issue.
>         
>         
>         
>         
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110317/549c3306/attachment.html 


More information about the development mailing list