User login

Benjamin Melançon

Shaping Drupal's Future (presentation description)

Drupal does not belong to the Drupal Association. It does not belong to Node One, Phase Two, Chapter Three, Four Kitchens, Palantir, Acquia, or even Agaric. It does not belong to Dries— except the name. It belongs to you, and every other person who steps up to claim it, equally.

What does it mean to take ownership?

PHP Arrays plus symbol (+) syntax

http://www.php.net/manual/en/language.operators.array.php

With the $array1 + $array2 syntax, anything with a text key in $array1 is kept, at the expense of anything with the same key in $array2.

Git remote branches are different on my local compared to server

The local checkout on my computer and the one on the dev server are looking at the same Git repository, but the results of git branch -a (show all remote branches) is very different.

Reason: git pull origin master does not get all the branch and tag information the way git fetch does!

Solution:

git fetch origin

Now git branch -a and git checkout branchicareabout both work.

Internal error from Redmine turns out to be due to tmp directory being full

This helpful error:

Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your redMine administrator for assistance.

When looked into the logs:

sudo tail -f /var/log/redmine/default/production.log

Building Beauty presentation documentation and links

The Site

  • http://daniel-libeskind.com/
  • Horizontal continuum for all sections
  • Press request and access functionality with Organic Groups
  • Complex, structured project content type
  • News, press releases, etc.
  • Events listing
  • About Daniel Libeskind section, including sub-project listing with galleries
  • Project, one-by-one galleries
  • PDF Generator
  • Mobile version ...including for BlackBerry

Return user to current page: How to link to a form from a Drupal menu

Press login / press account links for anonymous and logged in users, respectively. Subtly added to a bottom menu. Via code in order to allow for the redirect back to the page you were on after login or editing.

There is surely a way, or should be a way, that does not involve hook_page_alter(), but hey, this works.

Adding non-menu things to primary links menu items with Drupal 7's page alter hook

The request was to stick search in a menu. I said "I bet that's easy with hook_page_alter()!"

Not quite.

The primary links menu is output directly by the theme, and so is one of the very very few things that occurs after hook_page_alter().

You can tell the theme to stop outputting it directly, and put it in a block that is displayed in a region, or you can add it to the page rendering array in code with hook_page_build().

Settings for sets of sites: Putting Drush configuration into your project repository

Inherit local-only options with 'parent'

Parent is not working across files. Filed support request: http://drupal.org/node/1262230

In an aliases file that lives with your project, so for our SDL project, sdl.aliases.drushrc.php, put in all settings that are true no matter who is using Drush and from where. This is the settings for an externally hosted development collaboration site.

Syndicate content