X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Fsystem_info_alter.twig;fp=vendor%2Fchi-teck%2Fdrupal-code-generator%2Ftemplates%2Fd7%2Fhook%2Fsystem_info_alter.twig;h=6b07505bde8d498b5434560950cb45a3c305f80c;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=0000000000000000000000000000000000000000;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_info_alter.twig b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_info_alter.twig new file mode 100644 index 000000000..6b07505bd --- /dev/null +++ b/vendor/chi-teck/drupal-code-generator/templates/d7/hook/system_info_alter.twig @@ -0,0 +1,9 @@ +/** + * Implements hook_system_info_alter(). + */ +function {{ machine_name }}_system_info_alter(&$info, $file, $type) { + // Only fill this in if the .info file does not define a 'datestamp'. + if (empty($info['datestamp'])) { + $info['datestamp'] = filemtime($file->filename); + } +}