User login

code snippet

Vim snippets with SnipMate for PHP and Drupal

See also:

git clone git://
cd snipmate.vim
cp -R * ~/.vim

vi ~/.virmrc (v ~/customhome/.vimrc-agaric for me.)

:filetype plugin on
:helptags ~/.vim/doc

Display the word count of a piece of content

In the most useful comment on a thread of useful comments, Greg Harvey describes how to get the word count for a node in the template level: access just the body portion of the content variable for a node in and count the words in template.php, then output this variable in node.tpl.php.

Syndicate content