Skip to content

Commit

Permalink
drupal standars
Browse files Browse the repository at this point in the history
  • Loading branch information
dmouse committed Jul 14, 2014
1 parent 6a70834 commit 936735f
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/Resources/skeleton/module/module.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
/**
* @file
* Contains {{machine_name}}.module
* Contains {{machine_name}} functions.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function {{machine_name}}_help($route_name, RouteMatchInterface $route_match)
{
function {{machine_name}}_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the {{ machine_name }} module.
case 'help.page.{{ machine_name }}':
Expand All @@ -24,13 +21,10 @@ function {{machine_name}}_help($route_name, RouteMatchInterface $route_match)
}
}
/**
* Implements hook_theme().
*/
function {{machine_name}}_theme()
{
function {{machine_name}}_theme() {
$theme = [];
return $theme;
Expand Down

0 comments on commit 936735f

Please sign in to comment.