Hi,
I am writing a module for drupal, but I always need to re-install my module to make it work. Is there a way to make my changes working without reinstall?
Thanks!
VVThumb Microproduction
Location:Room 807,QiLuRuanJianDaSha Qilu Software Park No. 1 Shunhua Rd High-Tech Development Zone Jinan, China 250101 Website: http://www.haulynjason.net/haulyn Mobile: +86 15854103759
Haulyn Jason
That depends on what changes you're making and what you mean by "make it work". You'll need to be more specific.
--Larry Garfield
On Wednesday 23 June 2010 01:21:49 am Haulyn Jason wrote:
Hi,
I am writing a module for drupal, but I always need to re-install my module to make it work. Is there a way to make my changes working without reinstall?
Thanks!
VVThumb Microproduction
Location:Room 807,QiLuRuanJianDaSha Qilu Software Park No. 1 Shunhua Rd High-Tech Development Zone Jinan, China 250101 Website: http://www.haulynjason.net/haulyn Mobile: +86 15854103759
Haulyn Jason
Hi,
I change something about menu, page, blocks, nothing changed for database. I want to know is there a way to make drupal as "development" state, then drupal will auto reload the .module file.
Thanks.
On Wed, 23 Jun 2010 01:29:55 -0500, Larry Garfield larry@garfieldtech.com said:
Larry> That depends on what changes you're making and what you Larry> mean by "make it work". You'll need to be more specific.
Larry> --Larry Garfield
Larry> On Wednesday 23 June 2010 01:21:49 am Haulyn Jason wrote: >> Hi, >> >> I am writing a module for drupal, but I always need to >> re-install my module to make it work. Is there a way to make my >> changes working without reinstall? >> >> >> Thanks! >> >> VVThumb Microproduction >> >> Location:Room 807,QiLuRuanJianDaSha Qilu Software Park No. 1 >> Shunhua Rd High-Tech Development Zone Jinan, China 250101 >> Website: http://www.haulynjason.net/haulyn Mobile: +86 >> 15854103759 >> >> Haulyn Jason >> Larry> -- [ Drupal support list | http://lists.drupal.org/ ] Larry> Thanks!
VVThumb Microproduction
Location:Room 807,QiLuRuanJianDaSha Qilu Software Park No. 1 Shunhua Rd High-Tech Development Zone Jinan, China 250101 Website: http://www.haulynjason.net/haulyn Mobile: +86 15854103759
Haulyn Jason
The .module file is reparsed on every page load, but many hooks are cached and not called again until the cache is cleared. hook_menu and hook_theme are among them. I don't recall off hand if hook_block is. To have those get rescanned, go to the Performance page in the admin and click the clear cache button.
You can also install the devel or admin_menu modules, which offer links on every page (either as a block for devel or at the top left of every page in admin_menu) to clear the cache. You generally only need to do so when those hooks change, but having the command on-hand is extremely useful during development.
--Larry Garfield
On Wednesday 23 June 2010 01:36:02 am Haulyn Jason wrote:
Hi,
I change something about menu, page, blocks, nothing changed for database. I want to know is there a way to make drupal as "development" state, then drupal will auto reload the .module file.
Thanks.
On Wed, 23 Jun 2010 01:29:55 -0500, Larry Garfield larry@garfieldtech.com said:
Larry> That depends on what changes you're making and what you Larry> mean by "make it work". You'll need to be more specific. Larry> --Larry Garfield Larry> On Wednesday 23 June 2010 01:21:49 am Haulyn Jason wrote: >> Hi, >> >> I am writing a module for drupal, but I always need to >> re-install my module to make it work. Is there a way to make my >> changes working without reinstall? >> >> >> Thanks! >> >> VVThumb Microproduction >> >> Location:Room 807,QiLuRuanJianDaSha Qilu Software Park No. 1 >> Shunhua Rd High-Tech Development Zone Jinan, China 250101 >> Website: http://www.haulynjason.net/haulyn Mobile: +86 >> 15854103759 >> >> Haulyn Jason Larry> -- [ Drupal support list | http://lists.drupal.org/ ] Larry> Thanks!VVThumb Microproduction
Location:Room 807,QiLuRuanJianDaSha Qilu Software Park No. 1 Shunhua Rd High-Tech Development Zone Jinan, China 250101 Website: http://www.haulynjason.net/haulyn Mobile: +86 15854103759
Haulyn Jason
Thanks Larry, it's very useful for me.
On Wed, 23 Jun 2010 02:10:48 -0500, Larry Garfield larry@garfieldtech.com said:
Larry> The .module file is reparsed on every page load, but many Larry> hooks are cached and not called again until the cache is Larry> cleared. hook_menu and hook_theme are among them. I don't Larry> recall off hand if hook_block is. To have those get Larry> rescanned, go to the Performance page in the admin and Larry> click the clear cache button.
Larry> You can also install the devel or admin_menu modules, which Larry> offer links on every page (either as a block for devel or Larry> at the top left of every page in admin_menu) to clear the Larry> cache. You generally only need to do so when those hooks Larry> change, but having the command on-hand is extremely useful Larry> during development.
Larry> --Larry Garfield
Larry> On Wednesday 23 June 2010 01:36:02 am Haulyn Jason wrote: >> Hi, >> >> I change something about menu, page, blocks, nothing changed >> for database. I want to know is there a way to make drupal as >> "development" state, then drupal will auto reload the .module >> file. >> >> Thanks. >> >> >> On Wed, 23 Jun 2010 01:29:55 -0500, Larry Garfield >> larry@garfieldtech.com said: >> Larry> That depends on what changes you're making and what you Larry> mean by "make it work". You'll need to be more specific. >> Larry> --Larry Garfield >> Larry> On Wednesday 23 June 2010 01:21:49 am Haulyn Jason wrote: >> >> Hi, >> >> I am writing a module for drupal, but I always >> need to >> re-install my module to make it work. Is there a way >> to make my >> changes working without reinstall? >> >> >> >> Thanks! >> >> VVThumb Microproduction >> >> Location:Room >> 807,QiLuRuanJianDaSha Qilu Software Park No. 1 >> Shunhua Rd >> High-Tech Development Zone Jinan, China 250101 >> Website: >> http://www.haulynjason.net/haulyn Mobile: +86 >> 15854103759 >> >> >> Haulyn Jason >> Larry> -- [ Drupal support list | http://lists.drupal.org/ ] Larry> Thanks! >> >> VVThumb Microproduction >> >> Location:Room 807,QiLuRuanJianDaSha Qilu Software Park No. 1 >> Shunhua Rd High-Tech Development Zone Jinan, China 250101 >> Website: http://www.haulynjason.net/haulyn Mobile: +86 >> 15854103759 >> >> Haulyn Jason >> Larry> -- [ Drupal support list | http://lists.drupal.org/ ] Larry> Thanks!
VVThumb Microproduction
Location:Room 807,QiLuRuanJianDaSha Qilu Software Park No. 1 Shunhua Rd High-Tech Development Zone Jinan, China 250101 Website: http://www.haulynjason.net/haulyn Mobile: +86 15854103759
Haulyn Jason