Inject variables only in teasers (template suggestions)
In a preprocess/process function for the node template file, you just need to check the following variables:


$variables['teaser'] must be TRUE
$variables['node']-&gt;type must be 'article'


$variables is the parameter passed to preprocess/process functions.