Skip to content

Commit

Permalink
Added fge and DRUPAL_ snippets.
Browse files Browse the repository at this point in the history
  • Loading branch information
technosophos committed Feb 29, 2012
1 parent e411360 commit d5ca342
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions snippets/php/drupal.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ snippet tt
# have tt overridden. (It's easier to type t() than t<tab>1)
snippet ttt
t('${1:With %foo}', array(${2:'%foo' => 'bar'}))${3}
snippet fge
field_get_item('${1:node}', ${2:\$node}, ${3:'field_'})${4}
# CONSTANTS
snippet MENU_ NORMAL_ITEM
MENU_NORMAL_ITEM
Expand All @@ -142,6 +144,16 @@ snippet MENU_ DEFAULT_LOCAL_TASK
MENU_DEFAULT_LOCAL_TASK
snippet MENU_ CALLBACK
MENU_CALLBACK
snippet DRUPAL_ NO_CACHE
DRUPAL_NO_CACHE
snippet DRUPAL_ CACHE_PER_ROLE
DRUPAL_CACHE_PER_ROLE
snippet DRUPAL_ CACHE_PER_USER
DRUPAL_CACHE_PER_USER
snippet DRUPAL_ CACHE_PER_PAGE
DRUPAL_CACHE_PER_PAGE
snippet DRUPAL_ CACHE_GLOBAL
DRUPAL_CACHE_GLOBAL
# FAPI for Drupal 7
# form item
snippet fi
Expand Down

0 comments on commit d5ca342

Please sign in to comment.