Skip to main content

Home/ Drupal for Developers/ Group items tagged drupal_theming

Rss Feed Group items tagged

Daniel Gregoire

Nick Sergeant :: Drupal 6ers… register your theme functions! Here's how. - 3 views

  • <? function name_of_module_theme() { return array( 'name_of_theme_function' => array( 'arguments' => array('items' => NULL) ) ); }
  • <? function theme_name_of_theme_function($items = NULL) { $output = 'hey, this is some output that gets generated when theme_name_of_theme_function($items) is called from somewhere'; return $output; }
Daniel Gregoire

Advanced theme settings | drupal.org - 4 views

  • here. dman - April 6, 2009 - 22:10 This worked fo me. An additional logo (Appeared in the footer everywhere) Not sure why I had to put the submit handler into the #validate pass :-/ It was copied from the existing theme settings funcs. 'campaign_' is the theme name.
  •  
    d.o page for adding theme-settings.php file for custom theme features available at theme configuration page. Highlighting comment that successfully adds an "upload" field for uploading images for custom features.
anonymous

Smarter Theming with SASS (Syntactically Awesome StyleSheets) on Drupal | Steve Krueger - 0 views

  •  
    Currently there are 2 Drupal projects, by Steve Krueger, which focus on development with SASS on Drupal: Basic (SASS Optimized) and SASS API.
samantha armstrong

FixComputerpProblemsSite Surely Knows How to Fix Computer Problems! - 1 views

I was having problems with my laptop before. Good thing FixComputerpProblemsSite helped me fix it. And they are really the experts when it comes to solving any computer related issues. They can eas...

fix computer problems Drupal drupal_howto drupal_best_modules drupal_performance drupal_theme drupal_problems_solved drupal_modules_to_watch drupal_sites drupal_module module

started by samantha armstrong on 07 Jun 11 no follow-up yet
Daniel Gregoire

Theming the User Registration Form in Drupal 6 | Trellon - 0 views

  • <?phpfunction themename_theme($existing, $type, $theme, $path) {  return array(    ...    // tell Drupal what template to use for the user register form    'user_register' => array(      'arguments' => array('form' => NULL),      'template' => 'user-register', // this is the name of the template    ),    ...  );}?>
  • <div id="registration_form">  <div class="field">    <?php      print drupal_render($form['account']['name']); // prints the username field    ?>  </div>  <div class="field">    <?php      print drupal_render($form['account']['pass']); // print the password field    ?>  </div>  <div class="field">    <?php        print drupal_render($form['submit']); // print the submit button      ?>    </div>  </div></div>
  • <?php  print '<pre>';  print var_export($form);  print '</pre>';?>
  • ...3 more annotations...
  • Don't forget to render hidden fields or it won't work ;) echo drupal_render($form['timezone']); echo drupal_render($form['form_build_id']); echo drupal_render($form['form_id']);
  • you also have to print the "token" in order to make the form work print drupal_render($form['form_token']);
  • From my own experience using a form tpl.php, you need to print the whole $form at the very end of the template to ensure that the form will validate upon submission. <?php print drupal_render($form); ?> Just adding the hidden form_build_id and the form_id fields will not mean the form will work. Printing the entire form at the end, however, will mean that all the stuff you wanted to hide in making the template will show. For those fields, include "unset" statements for each one: <?php unset($form['field_to_hide']); ?> Please correct me if I'm wrong or if there is a better way to do this.
Daniel Gregoire

Theming Views In Drupal 6.x | Drupaler | Drupal Blog, Collaborative Drupal Resource - 0 views

  • <?phpfunction garland_preprocess_views_view__my_view(&$variables) {  $variables['foo'] = 'some text';}?>
Fabola smith

Importance of Drupal Development Services - 1 views

  •  
    This article stresses upon the importance of using proven Drupal development services so as to ensure a successful and profitable online existence.
andrew smith

Hire Drupal Developers | Drupal CMS Development company - 0 views

  •  
    Anubavam offers a wide range of Drupal consulting services meant to assist companies and organizations with various aspects of a Drupal development project
‹ Previous 21 - 31 of 31
Showing 20 items per page