How to implement template_preprocess_hook for a module template

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.

How to change column width in Marinelli theme

I searched but still cannot figure out how to change the column width in Marinelli.

I could resize the side bar by this. However, the content body column remains same size and leaves a bigger blank gap between content and side bar.

file: layout.css

#sidebar-first
{
width:20%; (or whatever you are aiming for)
}

Can anybody help this.

Innerfade jquery isn't working in Drupal 7.....any idea why?

I used to use this: http://medienfreunde.com/lab/innerfade/ in nearly every d6 site i made. However, I can't get it to work in D7.

Here are my steps:

My code with images in a block with php enabled :

Google Alerts Style Module

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 hope this is the right place for this question.

Thanks!

How to make field from third party module availabe

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.

Groups

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?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x