User login

Drupal Development

Custom nodes module AND CCK: Bdragon serves you cake and lets you have it, too

stompeers___: I have just a few tables: masters (which are the CDs and DVDs), sales orders (which consist of orders from clients) and work orders (each work order is for a single master, and there may be many work orders for a single sales order).
[9:26pm] pnm_ joined the chat room.
[9:26pm] designerbrent left the chat room. (Read error: 110 (Connection timed out))
[9:26pm] purserj joined the chat room.

A call to t() in FAQ causing excessive locale cache refreshing

Agaric @TODO - report this to FAQ issue queue

Here's a string that shouldn't have been in t() --

aeb831da T+0.588907 [DEBUG ] cache_clear_all('locale:pt-br', 'cache') in `modules/locale/locale.module':213

t() call in hook_info in Usernode causes too much locale caching

t() hook node_info Drupal
cannot use t() in custom node declaration?
hook_node_info

Our latest culprit in the Drupal refresh wars: Usernode.

Cache clearing craziness, taxonomy and locale notes

Delete one term and every cache on your entire site gets cleared?

cache_clear_all() in `modules/taxonomy/taxonomy.module':592
taxonomy_del_term('345') in `modules/taxonomy/taxonomy.module':613

What's this about clearing the language cache because the organic groups page is visited in Italian? There's a ton of these:

Decimal numbers and Drupal's db_query (sprintf)

GMap centering rounds off?

Drupal.extend({ settings: { "gmap": { "view_gmap": { "width": "100%", "height": "300px", "zoom": 9, "controltype": "Small", "align": "None", "maptype": "Hybrid", "line_colors": [ "#00cc00", "#ff0000", "#0000ff" ], "behavior": { "locpick": false, "nodrag": 0, "nokeyboard": 1, "nomousezoom": 0, "autozoom": 0, "dynmarkers": 0, "overview": 0, "notype": 0, "collapsehack": 0, "scale": 0, "fatmarkers": false }, "markermode": "1", "longitude": "-71.000000", "latitude": "42.000000", "markers": [

Agaric wants to never, ever see the message illegal choice detected by administrator

Or maybe it's the form validation error that we never want to see. Yes, I may have a form open 50 hours before submitting it! Drupal shouldn't have a problem with that!

Ok, back to the strangeness at hand:

An illegal choice has been detected. Please contact the site administrator.
http://drupal.org/node/153774

says to use the (dangerous) #dangerous_skip_check

Unsetting things in Nodeapi View works to hide them

<pre>
function wsf_action_nodeapi(&$node, $op) {
  if ($node->type == 'action') {
//  when showing a node: load, view, alter
    switch ($op) {
      case 'view':
        // unsetting things in nodeapi view *does* work
        unset($node->content['locations']);
        break;
...
    }
  }

Users and usernodes getting out of synch

it's quite annoying... the only way to delete a usernode is to delete the user. So to delete orphaned usernames I assigned a bunch of them to New Test, and deleted the user New Test (directly through user/##/edit rather than an admin interface). This worked great, except... it left the New Test usernode orphaned!

(I can see a vicious cycle here)

Unpublishing for now, to keep it out of lists (remember to filter your user pages by published), but we'll have to be aware to look out for more user/usernode weirdness.

Resolution

Finding stuff in a subform (useless note)

Subform

$subforms[0][nid][#post][title] => Make this automatic
... and every one of these... vid, uid, created, type, log
$subforms[0][changed][#post][title] => Make this automatic

For author at least #post was under another, extra level, [name]
... in addition to being at the #post position as usual

$subforms[0][submit][#post][title] => Make this automatic

$subforms[0][#post] => Array
(
[title] => Make this automatic

Add action form print_r dump - for easy reference for form_alter and form theming

modern version of add action form

Agaric output this form for the sake of setting a more logical default start time for the date module CCK field here,

We're keeping it around for the fun that could be had with time zones...

Array
(
[#id] => node-form
[nid] => Array
(
[#type] => value
[#value] =>
)

[vid] => Array
(
[#type] => value
[#value] =>
)

Syndicate content