Last active
February 4, 2020 22:43
-
-
Save paul121/7d10d249c7cc2235bf282ad0913f86d6 to your computer and use it in GitHub Desktop.
Field Module template files (DRAFT)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This file should be in a ~/dist directory (can't show directories in gists) | |
// Field Module Code here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = {module_name} | |
description = {module_description} | |
core = 7.x | |
dependencies[] = farm_client |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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