Skip to content

Instantly share code, notes, and snippets.

@paul121
Last active February 4, 2020 22:43
Show Gist options
  • Save paul121/7d10d249c7cc2235bf282ad0913f86d6 to your computer and use it in GitHub Desktop.
Save paul121/7d10d249c7cc2235bf282ad0913f86d6 to your computer and use it in GitHub Desktop.
Field Module template files (DRAFT)
// This file should be in a ~/dist directory (can't show directories in gists)
// Field Module Code here
name = {module_name}
description = {module_description}
core = 7.x
dependencies[] = farm_client
<?php
/**
* {module_name}
*/
/**
* Implements hook_farm_client_module_info()
*/
function {module_machine_name}_farm_client_module_info()
{
return array(
'{module_machine_name}' => array(
'name' => '{module_machine_name}',
'label' => t('{module_name}'),
'js' => drupal_get_path('module', '{module_machine_name}') . '/dist/module.js',
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment