How to
Link to twitter status message from Drupal twitter module repost
Link twitter status messages to the twitter account display of these status messages.
Adding (verifying) your Drupal site to Google's Webmaster Tools
I don't see an API for your entire Google account coming soon, or Google should already be able to skip the verification step for sites using Google analytics.
So the easiest way is to make a new node or create a new path alias to an existing page with the path that google wants: googleed909f3ff5bcb87e.html in this case.
And delete it afterward.
RDFa in Drupal design camp presentation notes and download
Update: RDFa in Drupal presentation download.
Checkout a specific revision of a file with Git
git checkout abcde file/to/restore
Reference:
How do I reset/revert a specific file to a specific revision using Git?
http://stackoverflow.com/questions/215718/how-do-i-reset-revert-a-specif...
Having the top-level menu items not be links (for use with dropdown menus)
The best approach may be to avoid this entirely with proper information architecture. I always try to make these have meaning themselves, but certainly with not expecting most people to click on them anyway, this does not always make sense. Instead, the way Agaricer Kathleen did it for one project is simply to have each dropdown be a separate menu.
Unset certain values in an unkeyed PHP array
Can't be as complicated as these people make it out to be?
http://dev-tips.com/featured/remove-an-item-from-an-array-by-value
Undo a conflicting change in your working copy that you didn't want anyway
In short, resolve a conflict in favor of the outside repository.
The file can be a
mv offending.file ~/elsewhere
git checkout offending.fileSee also for resetting everything: http://agaric.com/note/git-update-and-ignore-local-changes
References
http://bryan-murdock.blogspot.com/2007/07/git-revert-is-not-equivalent-t...
Example of hook_block in Drupal 6
<?php
/**
* Implementation of hook_block().
*/
function fightfi_block($op = 'list', $delta = 0) {
$block = array();
switch ($op) {
case 'list':
$block[0]['info'] = t('Sidebar Links');
$block[1]['info'] = t('Footer Links');
return $block;
case 'view':
switch ($delta) {
case 0:
$block['subject'] = t('Sidebar Links');
Drupal 7 module development gotchas
First we discovered that you need a .module file for your module to be recognized. A .info file is not enough. (In this case, we only wanted the .install file, we made an empty .module file, and all was well. But then we wanted to add some functions to that empty .module file...)
Now we have found that you need to declare
files[] = agaric_example.moduleUpgrading Drupal modules
Automated help:
http://drupal.org/project/deadwood
http://drupal.org/project/coder also has upgrade assisting functionality.
General best practices and Drupal 5 to 6:
http://drupal.org/node/114774
