Complete , 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...
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.moduleChange the location of an SVN repository for the working copy
Change repository
svn switch --relocate http://old.example.com/svn/pdonline http://svn.new.example.com/svn/pdonline
How to Unpublish Content
Gus helped a client who wanted a quotation to no longer appear in the rotation for a random quotation block.
Dear client,
Yes, you can delete the quote. Though you probably would simply want to unpublish the quote instead of deleting it. This way you can use the quote in the future without having to re-enter it. If you go here:
