Top "Drupal-templates" questions

Theme templates are part of Drupal's theming system and allow for the customization of Drupal sites.

Adding a JavaScript file

I'm trying to insert reference to the Javascript file in the header by using drupal_add_js(). I placed this …

javascript drupal drupal-6 drupal-templates
Using preprocess hook on specific node type in Drupal 8

I've had success using preprocess page hooks such as: function mytheme_preprocess_page__node_front(&$variables) { ... } and function mytheme_…

drupal-8 drupal-hooks drupal-templates
How does hook_theme() work?

I am having a hard time understanding what hook_theme() does. My understanding is that it has something to do …

drupal drupal-7 hook drupal-templates
Drupal 7 preprocess_views not working

I have the following code in my Drupal 7 template.php file: function mytheme_preprocess_views_view__videos__videos(&$vars) { …

drupal drupal-7 drupal-views drupal-templates
Drupal 7 views_embed_view and templates

In Drupal 7 created a block view (called *super_gallery*) of grid format added a template specialization views-view-grid--super-gallery--block.tpl.php cleared …

php drupal-7 drupal-views drupal-templates
How to modify the drupal search templates?

I'm attempting to create my own templates for the search pages using drupal 6. When creating these template pages i usually …

drupal drupal-6 drupal-themes drupal-templates
Drupal 7: Template for user registration page?

How would I make a template for the user registration page? I want to theme the entire page, not just …

drupal drupal-7 drupal-theming drupal-templates