Drupal funciton node_view() is the standard function for rendering nodes, e.g.
$node = node_load(1);
$view = node_view($node, 'teaser');
$rendered = drupal_render($view);
There is a node theme defined by the node module (in node_theme()) but I’ve never actually seen it used.
Ever wanted to quickly and easily strip links from a string in PHP, but don’t want to use strip_tags because it forces you to manually specify every tag you want to keep, and not letting you tell it which ones to
When you use for node title generation some field than can contain special HTML chars (like quotes or apostrophe) when this chars converted twice First time – by token module and then by node module So if we use “&”
Tksk from: http://itkbcentral.blogspot.com/2011/08/attach-additional-volumes-to-aws-ec2.html This quick tutorial will show you how to create a new EBS volume in AWS EC2 and attach it to an existing EBS backed Linux (Ubuntu) EC2 Instance. If you find this tutorial useful, please consider making a
Amazon EC2’s new EBS Boot feature not only provides persistent root disks for instances, but also supports root disks larger than the previous limit of 10GB under S3 based AMIs. Since EBS boot AMIs are implemented by creating a snapshot,
If you nginx powered development instances are showing up in Google search results, there is a quick and easy way to prevent search engines from crawling your site. Add the following line to the location block of your virtualhost configuration
In this tutorial, I will show you how to get location of IP address from the command line in Linux. 1st method To install geoiplookup on Debian, Ubuntu or Linux Mint:
$ sudo apt-get install geoip-bin
To install geoiplookup on Fedora:
ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PNG, Postscript, SVG, and TIFF. Use ImageMagick
We had a problem with a customer that got a 1 minute timeout when restarting their DJango webapp, claiming that Apache did get stuck. After a test, in the Apache log files we found: 1 2 3 4 [Thu Oct
Today, I had to create a new an Amazon EC2 instance that will be used for beta testing. The quickest way to do this will be to clone the instance that is running the production web site. All the necessary