From create custom field handler I copy and pasted the code to create a new field handler.
I created a module my module for custom field handler.
The thing is I struggled hours because the handler was not found and I couldn't see a problem.
After I installed this module under folder modules in my local test environment to debug I could see that it works immediatly. The only difference I made was to install the module in sites/all/module.
After I dragged the module from sites/all/modules/custom to sites/all/modules it works on the server environment too!
The inc files are in the info relative to the module root, the only path I direct to is called with drupal_get_path.
So why couldn't views not find the handler when the module was installed in a subdirectory?
Thx in advance,
maen
So here's the
Comments
moving modules
You can't just drag a module from one folder to another. Have you checked out the Moving Modules and Themes documentation? Have you tried doing a registry rebuild?
Hi Kirsten
Of course I can drag a module. As long as it is in the root module folder and I deinstall it before completely and clear the cache. When there's nothing in the system it is as I would install a complete new module.
But thank you for your thoughts.
Custom module works in module folder, not in custom/module folde
Hi Maen,
I cracked it. Look You're using dpm($data,'data') function in "my_custom_module.views.inc file and that function belongs to Devel Module. Just download "Devel" module and enable it, after that copy your custom module into 'sites/all/modules/custom' and try to enable your custom module.Its worked for me,Lemme know if it works for you.
THX snehal, but
I created the dpm because I implemented the devel module. The problem is that when the module was either in the custum folder or in the mocules folder the path is correct. So the includes had had to be taken.
In the second step the 'data' was shown or not. So the includes were read or not. And this difference is the secret i can't solve.