Skip to content

Commit

Permalink
Updated hook_help() to do more automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
technosophos committed Dec 7, 2011
1 parent faad506 commit d424948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snippets/php-drupal.snippets
Expand Up @@ -5779,8 +5779,8 @@ snippet hook_help
*case 'admin/help#block':
* return '<p>' . t('Blocks are boxes of content rendered into an area, or region, of a web page. The default theme Bartik, for example, implements the regions "Sidebar first", "Sidebar second", "Featured", "Content", "Header", "Footer", etc., and a block may appear in any one of these areas. The <a href="@blocks">blocks administration page</a> provides a drag-and-drop interface for assigning a block to a region, and for controlling the order of blocks within regions.', array('@blocks' => url('admin/structure/block'))) . '</p>';
*/
case '${1}':
return '<p>' . t('${2}', array('${3}' => ${4})) . '</p>';
case '${1:admin/help#`Filename()`}':
return '<p>' . t('${2:help text}', array('${3:@placeholder}' => ${4:value})) . '</p>';
}
}
snippet hook_comment_presave
Expand Down

0 comments on commit d424948

Please sign in to comment.