I'm having some trouble getting template_preprocess_hook working for a theme implementation created by a module. Here's a summary of the setup:
D7
Main purpose of this module is to define a new entity type
The theme implementation ('foo') is defined as a template file
The page callback for the page that should use this template outputs a render element with '#theme' => 'foo'
Using devel_themer, I can confirm that the template file is in fact being used to render the content
However when I use devel_themer to display the available Preprocess functions, the only thing that shows up is 'template_preprocess + contextual_preprocess'. This is confusing since the documentation for hook_theme says of the 'preprocess functions' element:
preprocess functions: A list of functions used to preprocess this data. Ordinarily this won't be used; it's automatically filled in. By default, for a module this will be filled in as template_preprocess_HOOK. For a theme this will be filled in as phptemplate_preprocess and phptemplate_preprocess_HOOK as well as themename_preprocess and themename_preprocess_HOOK.
Are there any modules that function like Google Alerts for your drupal site? One that sends out an email alert to a user based on when keywords they select are added to the site?
I am interested in how a custom form can access a 'custom' field I.E one that does not ship with Drupal core. I have created coordinate picker field called 'gmap_coords' in a module called 'gmap' and I also want to use the date_popup type from 'date' module.
So far I have this in my form though neither field shows up.
Hello Everyone!
I am working on an educational web site where I hope to have instructors create classes, and lab materials, for student to access when they log in.
So I have many questions about this. The first is how do I create a different set of menu links for everyone who is logged in?
Also, I want only students of a class which they are enrolled to to see matterials of their class, no other classes. Is that called a group?