tipps

geany learns drupal .. yay!

Geany now is able to recognize drupal core functions.
It helps a lot if the function helper shows up while typing.

How to:
http://www.mcdruid.co.uk/content/using-geany-as-an-editor-for-drupal-dev...

Create a drupal-node by module

I recently had to implement functionality for a module to automatically import nodes from a XML-file of a foreign system. With this pages as references it turned out to be surprisingly easy:

http://drupal.org/node/1388922
http://drupal.org/node/201594

Drupal Globals

Finde it well documented here:

http://api.drupal.org/api/drupal/globals

facebook share/like/comment -> define thumbnail image

Defining the thumbnail picture used by facebook on fb-commenting, liking or sharing web content:

Set some headertags:

<link rel="image_src" href="Your_URL_to_the_image'" />
<meta property="og:image" content="Your_URL_to_the_image" />

If you use drupal, you can use this snippet:

  $url = url($relative_img_path, array('absolute' => true));
  drupal_set_html_head('<link rel="image_src" href="' . $url . '" />');
  drupal_set_html_head('<meta property="og:image" content="' . $url . '" />');
 

Too Cool for Internet Explorer