X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Finit.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Finit.twig;h=98cbebc4d0649574d496b45f44866a63982c1767;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/init.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/init.twig new file mode 100644 index 000000000..98cbebc4d --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/init.twig @@ -0,0 +1,10 @@ +/** + * Implements hook_init(). + */ +function {{ machine_name }}_init() { + // Since this file should only be loaded on the front page, it cannot be + // declared in the info file. + if (drupal_is_front_page()) { + drupal_add_css(drupal_get_path('module', 'foo') . '/foo.css'); + } +}