The Devel module is a suite of modules useful for development.
0
votes
1answer
33 views
kpr() in my form validation and submit function is not being called
In my form validation and submit functions, kpr() is not being called. Is there a better way to check that I'm in those functions? If kpr() isn't ideal to output my $form_state array, then what is ...
5
votes
1answer
86 views
How to know which module is responsible for each database query?
I enable the devel module and set it to Display query log.
Then on every page load I get a list of the generated sql queries. You can see an example of that list in the capture I uploaded. So far so ...
1
vote
2answers
55 views
Can I simulate a hook using Devel's PHP execution?
Let's say, for instance, that I want to quickly view the variables sent to HOOK_preprocess_node(), but I'm too lazy (if I'm just being honest) to edit my template.php file just to do that one check.
...
0
votes
0answers
50 views
How do I read the output of the devel module?
This is not asking where to find the output from devel, as I know where to find it. The question is how to read it and make sense of it. I need to find a field from a field collection, and then ...
1
vote
1answer
44 views
Purging session data on devel user switch
If you have used the devel module, you'd probably know about the nifty Switch user tool that is available as a block for use in a site. It allows users with the required permission to switch from the ...
1
vote
1answer
52 views
page.tpl.php override for Panels Pages?
I want to use a specific tpl.php file for all Panels Custom pages.
I get some formatting issues if I try to use "Panels Everywhere" module, so would like an alternative.
1
vote
1answer
31 views
Defining Devel generation rules for custom nodes
I have Devel module installed, I use it mostly for generating content.
I wanted to know if it was possible to define some custom rules to generate content for my custom nodes.
For example: I want ...
2
votes
1answer
39 views
How can I see what variables are available on the loaded page via the devel PHP Execute block?
How can I see what variables are available to me on the page i am viewing via the PHP Execute block? I'm trying to do a dsm($node) but that doesnt seem to work. Neither does dsm($page).
0
votes
3answers
145 views
Let anonymous view dpm()
I need to debug a D7 site from the anonymous user. What settings need to be changed to allow anonymous to view dsm(), dpm(), krumo(), etc. commands?
Note: I have already enabled Access developer ...
1
vote
1answer
93 views
enable dd() for drush - temporary://debug_drupal.txt call fails
If I included calls to dd() from code I run with drush, I see messages like this:
WD php: Warning: file_put_contents(temporary://drupal_debug.txt): [warning]
failed to open stream: ...
0
votes
0answers
33 views
How to theme a view page display to look like my node template
I have a View page display that I create on the fly with arguments. There are going to be at least 100 fields by the time I am done mapping them all. I also have several nodes with the same fields, ...
3
votes
2answers
250 views
module_load_include not working including inc file
I am trying to make it work, but it seems simply not working in Drupal 6. Maybe this is the issue, it does not work on D6?
This is the code:
// $file_path = module_load_include('inc', ...
3
votes
1answer
46 views
What is the difference between the Load and Render objects in Devel?
When viewing a Node in the Devel tab, what are these different objects Load and Render? How and where would I have access to them in the theme layer?
1
vote
1answer
117 views
Reduce latency in loading a page in Drupal 6
I have activated cache in Drupal, and the Devel module.
The total time in all queries is less than one second, but the latency is 4.34 seconds.
Can anyone explain the latency? What happens during the ...
0
votes
1answer
20 views
How to get the value of a variable in CCK from Devel?
I am using a custom .tpl file to theme teasers, and I am having trouble with the value of a variable returning true even when apparently there is no value inside ($picture). I would like to see what ...