Drupal Documents by Shivcharan

CDN / externally hosted libraries

CDN / externally hosted libraries

You might want to use JavaScript that is externally on a CDN (Content Delivery Network) ? e.g. web fonts are usually only available using an external URL; you can't host them yourself.

Theme system overview

Drupal's theme system allows a theme to have nearly complete control over the appearance of the site, which includes both the markup and the CSS used to style the markup.

User variables in D7

Getting node author of current viewed node

<?php $node = node_load(arg(1));
echo $node->uid; ?>

Current login User.

HTML Entities, Symbols.

Some Other Entities Supported by HTML

Char Number Entity Description
? &#169; &copy; COPYRIGHT SIGN

Display Drupal 7 block anywhere

Ever wanted to show a Drupal block anywhere in your theme? Use the following code snippet, take note that you will need the module of the block and its delta

Subscribe to Drupal Documents by Shivcharan

Sample blackbox block

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas non porta odio, id mattis erat.

Nam sed tincidunt eros. Donec a venenatis odio, vitae commodo sem. Vivamus ullamcorper pellentesque erat, in adipiscing tortor scelerisque sit amet. Nulla pulvinar urna magna. Vivamus a ipsum lorem. Etiam adipiscing pulvinar lorem.