sun

bench.php

  1. <?php
  2.  
  3. define('DRUPAL_ROOT', getcwd());
  4.  
  5. error_reporting(E_ALL | E_STRICT);
  6.  
  7. function no_op($text) {
  8.   return $text;
  9. }
  10.  
  11. /**
  12.  * Configuration.
  13.  */
  14. const ITERATIONS = 100000;
  15.  
  16. $data = 'te

Is // always an alias of /descendant-or-self::node()/ in all PHP versions?

  1. <?php
  2. $s = '<!DOCTYPE html>
  3. <html>
  4. <body>
  5. <form>
  6. <select id="foo">
  7.  <option>Foo</option>
  8. </select>
  9. <select id="bar">
  10.  <option>Bar</option>
  11. </select>
  12. </form>
  13. </body>
  14. </html>';
  15. $e = simp

Drupal 6 equivalent of stylesheets-override[]

  1. function phptemplate_preprocess_page(&$vars) {
  2.   // Override system.css with theme version, but keep its position.
  3.   // So much to stylesheets-override[] .info property being needless...
  4.   // @see

Fix for Code

  1. ### USER 1 ###
  2.  
  3. Administration menu 7.x-3.0-rc1
  4. Administration menu Toolbar style 7.x-3.0-rc1
  5. Advanced help 7.x-1.0-beta1
  6. Backup and Migrate 7.x-2.2
  7. Chaos tools 7.x-1.0-rc1
  8. CKEditor Link 7.x-1.

Code

  1. ### USER 1 ###
  2.  
  3. User-Interface:
  4. CKEditor Link 7.x-1.2-beta1
  5. IMCE Wysiwyg API bridge 7.x-1.x-dev
  6. Wysiwyg 7.x-2.1
  7.  
  8. Chaos Tool Suite:
  9. Chaos tools 7.x-1.0-rc1
  10.  
  11. Media:
  12. IMCE 7.x-1.4
  13.  
  14. Other:
  15. Ad

ctools actions

  1. diff --git a/includes/wizard.inc b/includes/wizard.inc
  2. index 50cd79c..95b4931 100644
  3. --- a/includes/wizard.inc
  4. +++ b/includes/wizard.inc
  5. @@ -282,11 +282,8 @@ function ctools_wizard_wrapper($form,

Fix for Fix for Fix for Fix for Fix for Fix for Code

  1. <?php
  2. if ($rtbc_backportable_issues > 0) {
  3.   review_and_commit_rtbc_backportable_issues();
  4. }
  5. if ($critical_bugs > 15 || $major_bugs > 100) {
  6.   fix_bugs();
  7. }
  8. elseif ($critical_tasks > 15 || $maj

Fix for Fix for Fix for Fix for Code

  1. <?php
  2. if ($critical_bugs > 15 || $major_bugs > 100) {
  3.   fix_bugs();
  4. }
  5. elseif ($critical_tasks > 15 || $major_tasks > 100) {
  6.   fix_bugs();
  7.   refactor();
  8. }
  9. elseif ($rtbc_backportable_issues > 0)

Exception class error + log handling

  1. /**
  2.  * Exception class propagating the error to the originating class instance.
  3.  *
  4.  * @idea Pass the class instance in which an exception is thrown to the
  5.  *   exception class, in order to have th

Fix for Code

  1. <?php
  2. // $Id: field_entity.module,v 1.1 2010/12/03 19:13:10 sun Exp $
  3.  
  4. /**
  5.  * @file
  6.  * Exposes fields as entities.
  7.  */
  8.  
  9. function field_entity_entity_info() {
  10.   $entities['field'] = array(
  11.  

Code

  1. <?php
  2. // $Id: field_entity.module,v 1.1 2010/12/03 19:13:10 sun Exp $
  3.  
  4. /**
  5.  * @file
  6.  * Exposes fields as entities.
  7.  */
  8.  
  9. function field_entity_entity_info() {
  10.   $entities['field'] = array(
  11.  

KISS, chx, KISS!

  1. Index: includes/database/mysql/schema.inc
  2. ===================================================================
  3. RCS file: /cvs/drupal/drupal/includes/database/mysql/schema.inc,v
  4. retrieving revision 1

assertWatchdog()

  1.   function tearDown() {
  2.     // Capture any (remaining) watchdog messages.
  3.     $this->assertMollomWatchdogMessages();
  4.     parent::tearDown();
  5.   }
  6.  
  7.   /**
  8.    * Assert any watchdog messages based o

Code

  1. Index: includes/form.inc
  2. ===================================================================
  3. RCS file: /cvs/drupal/drupal/includes/form.inc,v
  4. retrieving revision 1.407
  5. diff -u -p -r1.407 form.inc

Code

  1. @@ -145,6 +148,7 @@ function field_multiple_value_form($fiel
  2.      '#prefix' => '<div id="' . $wrapper_id .

Code

  1. function &drupal_static($name, $default_value = NULL, $reset = FALSE) {
  2.   static $data = array(), $default = array();
  3.  
  4.   // If $name was passed as NULL, all variables are reset.
  5.   if (!isset($name

Fix for authorize.php @file comment

  1. /**                                                                            
  2.  * @file                                                                        
  3.  * Administrative script for running

Code

  1. function filter_process_format($element) {
  2.   global $user;
  3.  
  4.   // Determine the form element parents and element name to use for the text
  5.   // format widget.
  6.   $parents = $element['#parents'];
  7.  

Fix for Form (table) operations

  1. Index: modules/filter/filter.admin.inc
  2. ===================================================================
  3. RCS file: /cvs/drupal/drupal/modules/filter/filter.admin.inc,v
  4. retrieving revision 1.48
  5. d

Form (table) operations

  1. Index: modules/filter/filter.admin.inc
  2. ===================================================================
  3. RCS file: /cvs/drupal/drupal/modules/filter/filter.admin.inc,v
  4. retrieving revision 1.48
  5. d
Syndicate content