WTF

Fix for Fix for Code

  1. /**
  2.  * Implementation of hook_block().
  3.  */
  4. function myhomepage_block($op = 'list', $delta = 0) {
  5.         // Initialise idiotic MVC controller every time this hook fires, which may be
  6.         // hundreds

Fix for Code

  1. /**
  2.  * Implementation of hook_block().
  3.  */
  4. function myhomepage_block($op = 'list', $delta = 0) {
  5.         // initialise controller
  6.         $model = 'MyHomepage';
  7.         $controller = 'MVCHandlerController_' .

submission_nodeapi

  1. case 'presave':
  2.       // We enforce this to avoid rejected nodes being published
  3.       if (isset($node->{FIELD_JUST}) && !empty($node->{FIELD_JUST}[0]['value'])) {
  4.         $node->status = 0;
  5.      

small patch breaking includes

  1. ===================================================================
  2. RCS file: /cvs/drupal-contrib/contributions/modules/rules/rules/Attic/rules.api.php,v
  3. retrieving revision 1.1.2.9
  4. diff -u -p -r1.

insane version_extra_delta releases

  1. mysql> SELECT version, nid, pid FROM project_release_nodes WHERE version_extra_delta >= 20;
  2. +-----------------+--------+--------+
  3. | version         | nid    | pid    |
  4. +-----------------+--------+-

version_extra_delta on d.o

  1. mysql> SELECT version_extra_delta, COUNT(*) FROM project_release_nodes GROUP BY version_extra_delta;
  2. +---------------------+----------+
  3. | version_extra_delta | COUNT(*) |
  4. +---------------------+---

Order of calls to hook_order

  1. load
  2. total
  3. submit
  4. load
  5. total
  6. load
  7. total
  8. can_update
  9. update
  10. load
  11. total
  12. total
  13. total

wtf

  1. $item = array();
  2. $item['data'] = 'test';
  3.  
  4. if (isset($item['data']['description'])) {
  5.   print "set";
  6. }
  7. else {
  8.   print "unset";
  9. }

Fix for views sql for node reference/relationship reference

  1. SELECT node.nid AS nid, node.title AS node_title, node_node_data_field_location_node__location.latitude AS node_node_data_field_location_node__location_latitude, node_node_data_field_location_node__lo
Syndicate content