User login

Drupal Development

PHP optimization question; move assignment operation so it only runs when necessary?

@TODO: See if this construct is the same in development versions of content.module and ask if it would not be more efficient to move the $node = $form['#node']; line inside the if statement (or simply replace $node in there with the longer version) and so save a PHP copy operation when it is not necessary.

Error caused by misplaced parenthesis in drupal_set_message() function with error option.

An error with installing the databases (not visible here, the problematic database failed silently. The duplicate key error below has to do with a database not being deleted on uninstall.)

Project Management and Time Tracking in Drupal

Agaric (planned) Timetracking and Invoice System

Dan's listing:

  • Task
  • Estimated
  • Start
  • Estimated
  • Finish
  • Estimated Hours
  • Actual Start
  • Actual Finish
  • Total Billable Hours

My refinement:
* time spent (billable, reported as comped, not reported)

Agaric time: it's all nodes
which is a ridiculously heavy way to store this information, but so what
it's the Drupal way!
or at least the Agaric way

WHAT:

Number 2 and nothing else on some pages at some links in Drupal

Page contains only a numeric representation of 'two'

Research:
Menus missing, user login page not found
http://drupal.org/node/161106

content won't display on the administer page, except for the number "2"
http://drupal.org/node/233581

Answer:
The Number 2

This is very embarrassing. I took all these notes and then never recorded the answer, which I know I found.

Functions needed to define a new CCK field; Field placement module thoughts

If we were to implement Field Placement's imagecache preset option as a CCK field itself, here are (a lot of) the parts we would have to implement, drawn from imagefield itself. Many helper functions left out, but the below code is the gist of defining a CCK field type.

All in all, it seems like more work than warranted to display a setting option that does not get displayed on the node itself, but rather affects the display of another CCK field.

Fieldsets in Drupal forms: FAPI 5 syntax

Drupal fieldsets can also have a description.

Salesforce uncaught exception: always more to hate about the dark side of the force

Fatal error: Uncaught SoapFault exception: [soapenv:Client] The reference to entity "ie" must end with the ';' delimiter.

Too-true Typo of the Week: the wanders of unit testing

The too-true typo of the week, from Kyle Mathews' Unit Testing Success Story:

The Lullabot crew had a recent podcast on the wanders of unit testing.

The wanders, indeed.

Resolution

Agaric Utility function: set default values in an array

the original line is almost as short as the function, but if we want to add checking on "empty()" or need to change anything else, it's all in one place

Forward Drupal path to an external URL

UPDATE: A better, universal approach which should be all you need is immediately here--

Simply provide the internal path that really belongs to the old site (in 'path', and the URL you want to send things with this path to, in the 'url' value of 'callback arguments').

On third thought, this should really be done with Apache rather than making Drupal get involved. Oh well, this works too, though an Apache .htaccess or configuration file approach would be better because it would use fewer server resources.

Syndicate content