drupal

Fix for XML RPC example for Drupal 6.x Services

  1. <?php
  2.  
  3. /**
  4.  * Function for generating a random string, used for
  5.  * generating a token for the XML-RPC session
  6.  */
  7. function getUniqueCode($length = "") {
  8.   $code = md5(uniqid(rand(), true));
  9.  

Node To Word Stats module, dev snapshot

  1. <?php
  2. // $Id$
  3.  
  4. /*
  5.  * Created by Greg Harvey on 26 Jul 2010
  6.  *
  7.  * http://www.drupaler.co.uk
  8.  */
  9.  
  10. /**
  11.  * Helper function for returning node ID for given document
  12.  * download path.
  13.  *
  14.  * @p

Fix for Allow HTML in <i> node titles</i> for Drupal 6.x

  1. <?php
  2. /*
  3.  * Created 20 Apr 2009 12:07:47 by Greg Harvey
  4.  * http://www.drupaler.co.uk
  5.  */
  6. function html_titles_preprocess_page(&$vars) {
  7.   if (arg(0) == 'node' && is_numeric(arg(1))) {
  8.     $node

QuickTabs live example from newteachers.tes.co.uk/qanda

  1. /**
  2.  * Function for building the Q&A page tabbed views.
  3.  */
  4. function nqt_features_build_qanda_quicktabs() {
  5.   $quicktabs = array();
  6.   // General settings.
  7.   $quicktabs['ajax'] = TRUE;
  8.   $quickt

user.save with Drupal Services 6.x-2.2

  1. /*
  2.  * Now let's retrieve our user to change
  3.  */
  4. // set vars for this connection
  5. $nonce = getUniqueCode("10");
  6. $method_name = 'user.load';
  7. $timestamp = (string) strtotime("now");
  8. $required_args

Fix for XML RPC example for Drupal 6.x Services

  1. <?php
  2.  
  3. /**
  4.  * Function for generating a random string, used for
  5.  * generating a token for the XML-RPC session
  6.  */
  7. function getUniqueCode($length = "") {
  8.   $code = md5(uniqid(rand(), true));
  9.  

Fix for Allow HTML in node titles for Drupal 6.x

  1. <?php
  2. /*
  3.  * Created 20 Apr 2009 12:07:47 by Greg Harvey
  4.  * http://www.drupaler.co.uk
  5.  */
  6. function html_titles_preprocess_page(&$vars) {
  7.   if (arg(0) == 'node' && is_numeric(arg(1))) {
  8.     $node

Fix for Multipage User Registration

  1. <?php
  2. /**
  3. * Implementation of hook_menu()
  4. */
  5. function multipage_register_menu(){
  6.         $items['add/user'] = array(
  7.                 'title' => 'Add a user',
  8.                 'page callback' => 'multipage_register_wizard',
  9.                 'ac

Multipage User Registration

  1. <?php
  2. /**
  3. *       The purpose of this module is to take the user-registration form and make it
  4. *       multipage, where the pages change depending on the options selected during
  5. *       the last step.

Fix for Fix for Fix for Allow HTML in node titles for Drupal 6.x

  1. <?php
  2. /*
  3.  * Created 20 Apr 2009 12:07:47 by Greg Harvey
  4.  * http://www.drupaler.co.uk
  5.  */
  6. function html_titles_preprocess_page(&$vars) {
  7.   if (arg(0) == 'node' && is_numeric(arg(1))) {
  8.     $node
Syndicate content