Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
PHP snippets by Charlie Simpson
Drupal 7 - Get raw values from path
PHP
0
0
2539
Drupal 7 - Print author profile fields in a node.tpl
PHP
0
0
2146
Drupal 7 - Format post date of a node
PHP
0
1
1563
Drupal 7 - Create content type specific page.tpl
PHP
0
1
1601
Drupal 7 - Print plain text field in node.tpl.php
PHP
0
1
1971
Drupal 7 - Check to see if field exists
PHP
0
1
5927
Drupal 7 - Print block in node.tpl
PHP
0
0
1797
Drupal 7 - Conditional IE stylesheets (place in template.php)
PHP
0
1
1672