Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding some estra features to the Ruble.

  • Loading branch information...
commit feef44f161894122204361ba21dd6dd751c9a499 1 parent 2a1791d
Adam A. Gregory authored
View
14 drupal.ruble/commands/drupal_functions.rb
@@ -0,0 +1,14 @@
+require 'ruble'
+
+with_defaults :scope => 'source.php', :input => :none, :output => :insert_as_snippet do |bundle|
+ command 'drupal_add_js' do |cmd|
+ require 'functions.rb'
+ cmd.trigger = 'theme_admin_block'
+ cmd.invoke do |context|
+ moduleName = find_module_name(ENV['TM_DIRECTORY'])
+ "
+drupal_add_js()
+"
+ end
+ end
+end
View
1,400 drupal.ruble/commands/hooks.rb
@@ -9,8 +9,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_aggregator_fetch().
-*/
+ * Implements hook_aggregator_fetch().
+ */
function #{moduleName}_aggregator_fetch(\\$feed) {
${1}
}"
@@ -23,8 +23,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_aggregator_fetch_info().
-*/
+ * Implements hook_aggregator_fetch_info().
+ */
function #{moduleName}_aggregator_fetch_info() {
${1}
}"
@@ -37,8 +37,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_aggregator_parse().
-*/
+ * Implements hook_aggregator_parse().
+ */
function #{moduleName}_aggregator_parse(\\$feed) {
${1}
}"
@@ -51,8 +51,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_aggregator_parse_info().
-*/
+ * Implements hook_aggregator_parse_info().
+ */
function #{moduleName}_aggregator_parse_info() {
${1}
}"
@@ -65,8 +65,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_aggregator_process().
-*/
+ * Implements hook_aggregator_process().
+ */
function #{moduleName}_aggregator_process(\\$feed) {
${1}
}"
@@ -79,8 +79,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_aggregator_process_info().
-*/
+ * Implements hook_aggregator_process_info().
+ */
function #{moduleName}_aggregator_process_info(\\$feed) {
${1}
}"
@@ -93,8 +93,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_aggregator_remove().
-*/
+ * Implements hook_aggregator_remove().
+ */
function #{moduleName}_aggregator_remove(\\$feed) {
${1}
}"
@@ -107,8 +107,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_block_info().
-*/
+ * Implements hook_block_info().
+ */
function #{moduleName}_block_info() {
${1}
}"
@@ -121,8 +121,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_block_info_alter().
-*/
+ * Implements hook_block_info_alter().
+ */
function #{moduleName}_block_info_alter(&\\$blocks, \\$theme, \\$code_blocks) {
${1}
}"
@@ -135,8 +135,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_block_configure().
-*/
+ * Implements hook_block_configure().
+ */
function #{moduleName}_block_configure(\\$delta = \'\') {
${1}
}"
@@ -149,8 +149,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_block_save().
-*/
+ * Implements hook_block_save().
+ */
function #{moduleName}_block_save(\\$delta = \'\', \\$edit = array()) {
${1}
}"
@@ -163,8 +163,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_block_view().
-*/
+ * Implements hook_block_view().
+ */
function #{moduleName}_block_view(\\$delta = \'\') {
${1}
}"
@@ -177,8 +177,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_block_view_alter().
-*/
+ * Implements hook_block_view_alter().
+ */
function #{moduleName}_block_view_alter(&\\$data, \\$block) {
${1}
}"
@@ -191,8 +191,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_block_view_MODULE_DELTA_alter().
-*/
+ * Implements hook_block_view_MODULE_DELTA_alter().
+ */
function #{moduleName}_block_view_MODULE_DELTA_alter(&\\$data, \\$block) {
${1}
}"
@@ -205,8 +205,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_block_list_alter().
-*/
+ * Implements hook_block_list_alter().
+ */
function #{moduleName}_block_list_alter(&\\$blocks) {
${1}
}"
@@ -219,8 +219,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_comment_presave().
-*/
+ * Implements hook_comment_presave().
+ */
function #{moduleName}_comment_presave(\\$comment) {
${1}
}"
@@ -233,8 +233,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_comment_insert().
-*/
+ * Implements hook_comment_insert().
+ */
function #{moduleName}_comment_insert(\\$comment) {
${1}
}"
@@ -247,8 +247,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_comment_update().
-*/
+ * Implements hook_comment_update().
+ */
function #{moduleName}_comment_update(\\$comment) {
${1}
}"
@@ -261,8 +261,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_comment_load().
-*/
+ * Implements hook_comment_load().
+ */
function #{moduleName}_comment_load(\\$comments) {
${1}
}"
@@ -275,8 +275,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_comment_view().
-*/
+ * Implements hook_comment_view().
+ */
function #{moduleName}_comment_view(\\$comment, \\$view_mode, \\$langcode) {
${1}
}"
@@ -289,8 +289,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_comment_view_alter().
-*/
+ * Implements hook_comment_view_alter().
+ */
function #{moduleName}_comment_view_alter(&\\$build) {
${1}
}"
@@ -303,8 +303,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_comment_publish().
-*/
+ * Implements hook_comment_publish().
+ */
function #{moduleName}_comment_publish(\\$comment) {
${1}
}"
@@ -317,8 +317,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_comment_unpublish().
-*/
+ * Implements hook_comment_unpublish().
+ */
function #{moduleName}_comment_unpublish(\\$comment) {
${1}
}"
@@ -331,8 +331,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_comment_delete().
-*/
+ * Implements hook_comment_delete().
+ */
function #{moduleName}_comment_delete(\\$comment) {
${1}
}"
@@ -345,8 +345,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_contextual_links_view_alter().
-*/
+ * Implements hook_contextual_links_view_alter().
+ */
function #{moduleName}_contextual_links_view_alter(&\\$element, \\$items) {
${1}
}"
@@ -359,8 +359,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_dashboard_regions().
-*/
+ * Implements hook_dashboard_regions().
+ */
function #{moduleName}_dashboard_regions() {
${1}
}"
@@ -373,8 +373,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_dashboard_regions_alter().
-*/
+ * Implements hook_dashboard_regions_alter().
+ */
function #{moduleName}_dashboard_regions_alter(\\$regions) {
${1}
}"
@@ -387,8 +387,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_extra_fields().
-*/
+ * Implements hook_field_extra_fields().
+ */
function #{moduleName}_field_extra_fields() {
${1}
}"
@@ -401,8 +401,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_extra_fields_alter().
-*/
+ * Implements hook_field_extra_fields_alter().
+ */
function #{moduleName}_field_extra_fields_alter(&\\$info) {
${1}
}"
@@ -415,8 +415,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_info().
-*/
+ * Implements hook_field_info().
+ */
function #{moduleName}_field_info() {
${1}
}"
@@ -429,8 +429,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_info_alter().
-*/
+ * Implements hook_field_info_alter().
+ */
function #{moduleName}_field_info_alter(&\\$info) {
${1}
}"
@@ -443,8 +443,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_schema().
-*/
+ * Implements hook_field_schema().
+ */
function #{moduleName}_field_schema(\\$field) {
${1}
}"
@@ -457,8 +457,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_load().
-*/
+ * Implements hook_field_load().
+ */
function #{moduleName}_field_load(\\$entity_type, \\$entities, \\$field, \\$instances, \\$langcode, &\\$items, \\$age) {
${1}
}"
@@ -471,8 +471,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_prepare_view().
-*/
+ * Implements hook_field_prepare_view().
+ */
function #{moduleName}_field_prepare_view(\\$entity_type, \\$entities, \\$field, \\$instances, \\$langcode, &\\$items) {
${1}
}"
@@ -485,8 +485,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_validate().
-*/
+ * Implements hook_field_validate().
+ */
function #{moduleName}_field_validate(\\$entity_type, \\$entity, \\$field, \\$instance, \\$langcode, \\$items, &\\$errors) {
${1}
}"
@@ -499,8 +499,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_presave().
-*/
+ * Implements hook_field_presave().
+ */
function #{moduleName}_field_presave(\\$entity_type, \\$entity, \\$field, \\$instance, \\$langcode, &\\$items) {
${1}
}"
@@ -513,8 +513,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_insert().
-*/
+ * Implements hook_field_insert().
+ */
function #{moduleName}_field_insert(\\$entity_type, \\$entity, \\$field, \\$instance, \\$langcode, &\\$items) {
${1}
}"
@@ -527,8 +527,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_update().
-*/
+ * Implements hook_field_update().
+ */
function #{moduleName}_field_update(\\$entity_type, \\$entity, \\$field, \\$instance, \\$langcode, &\\$items) {
${1}
}"
@@ -541,8 +541,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_update_field().
-*/
+ * Implements hook_field_storage_update_field().
+ */
function #{moduleName}_field_storage_update_field(\\$field, \\$prior_field, \\$has_data) {
${1}
}"
@@ -555,8 +555,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_delete().
-*/
+ * Implements hook_field_delete().
+ */
function #{moduleName}_field_delete(\\$entity_type, \\$entity, \\$field, \\$instance, \\$langcode, &\\$items) {
${1}
}"
@@ -569,8 +569,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_delete_revision().
-*/
+ * Implements hook_field_delete_revision().
+ */
function #{moduleName}_field_delete_revision(\\$entity_type, \\$entity, \\$field, \\$instance, \\$langcode, &\\$items) {
${1}
}"
@@ -583,8 +583,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_prepare_translation().
-*/
+ * Implements hook_field_prepare_translation().
+ */
function #{moduleName}_field_prepare_translation(\\$entity_type, \\$entity, \\$field, \\$instance, \\$langcode, &\\$items, \\$source_entity, \\$source_langcode) {
${1}
}"
@@ -597,8 +597,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_is_empty().
-*/
+ * Implements hook_field_is_empty().
+ */
function #{moduleName}_field_is_empty(\\$item, \\$field) {
${1}
}"
@@ -611,8 +611,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_widget_info().
-*/
+ * Implements hook_field_widget_info().
+ */
function #{moduleName}_field_widget_info() {
${1}
}"
@@ -625,8 +625,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_widget_info_alter().
-*/
+ * Implements hook_field_widget_info_alter().
+ */
function #{moduleName}_field_widget_info_alter(&\\$info) {
${1}
}"
@@ -639,8 +639,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_widget_form().
-*/
+ * Implements hook_field_widget_form().
+ */
function #{moduleName}_field_widget_form(&\\$form, &\\$form_state, \\$field, \\$instance, \\$langcode, \\$items, \\$delta, \\$element) {
${1}
}"
@@ -653,8 +653,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_widget_error().
-*/
+ * Implements hook_field_widget_error().
+ */
function #{moduleName}_field_widget_error(\\$element, \\$error, \\$form, &\\$form_state) {
${1}
}"
@@ -667,8 +667,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_formatter_info().
-*/
+ * Implements hook_field_formatter_info().
+ */
function #{moduleName}_field_formatter_info() {
${1}
}"
@@ -681,8 +681,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_formatter_info_alter().
-*/
+ * Implements hook_field_formatter_info_alter().
+ */
function #{moduleName}_field_formatter_info_alter(&\\$info) {
${1}
}"
@@ -695,8 +695,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_formatter_prepare_view().
-*/
+ * Implements hook_field_formatter_prepare_view().
+ */
function #{moduleName}_field_formatter_prepare_view(\\$entity_type, \\$entities, \\$field, \\$instances, \\$langcode, &\\$items, \\$displays) {
${1}
}"
@@ -709,8 +709,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_formatter_view().
-*/
+ * Implements hook_field_formatter_view().
+ */
function #{moduleName}_field_formatter_view(\\$entity_type, \\$entity, \\$field, \\$instance, \\$langcode, \\$items, \\$display) {
${1}
}"
@@ -723,8 +723,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_form().
-*/
+ * Implements hook_field_attach_form().
+ */
function #{moduleName}_field_attach_form(\\$entity_type, \\$entity, &\\$form, &\\$form_state, \\$langcode) {
${1}
}"
@@ -737,8 +737,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_load().
-*/
+ * Implements hook_field_attach_load().
+ */
function #{moduleName}_field_attach_load(\\$entity_type, &\\$entities, \\$age, \\$options) {
${1}
}"
@@ -751,8 +751,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_validate().
-*/
+ * Implements hook_field_attach_validate().
+ */
function #{moduleName}_field_attach_validate(\\$entity_type, \\$entity, &\\$errors) {
${1}
}"
@@ -765,8 +765,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_submit().
-*/
+ * Implements hook_field_attach_submit().
+ */
function #{moduleName}_field_attach_submit(\\$entity_type, \\$entity, \\$form, &\\$form_state) {
${1}
}"
@@ -779,8 +779,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_presave().
-*/
+ * Implements hook_field_attach_presave().
+ */
function #{moduleName}_field_attach_presave(\\$entity_type, \\$entity) {
${1}
}"
@@ -793,8 +793,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_insert().
-*/
+ * Implements hook_field_attach_insert().
+ */
function #{moduleName}_field_attach_insert(\\$entity_type, \\$entity) {
${1}
}"
@@ -807,8 +807,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_update().
-*/
+ * Implements hook_field_attach_update().
+ */
function #{moduleName}_field_attach_update(\\$entity_type, \\$entity) {
${1}
}"
@@ -821,8 +821,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_preprocess_alter().
-*/
+ * Implements hook_field_attach_preprocess_alter().
+ */
function #{moduleName}_field_attach_preprocess_alter(&\\$variables, \\$context) {
${1}
}"
@@ -835,8 +835,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_delete().
-*/
+ * Implements hook_field_attach_delete().
+ */
function #{moduleName}_field_attach_delete(\\$entity_type, \\$entity) {
${1}
}"
@@ -849,8 +849,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_delete_revision().
-*/
+ * Implements hook_field_attach_delete_revision().
+ */
function #{moduleName}_field_attach_delete_revision(\\$entity_type, \\$entity) {
${1}
}"
@@ -863,8 +863,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_purge().
-*/
+ * Implements hook_field_attach_purge().
+ */
function #{moduleName}_field_attach_purge(\\$entity_type, \\$entity, \\$field, \\$instance) {
${1}
}"
@@ -877,8 +877,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_view_alter().
-*/
+ * Implements hook_field_attach_view_alter().
+ */
function #{moduleName}_field_attach_view_alter(&\\$output, \\$context) {
${1}
}"
@@ -891,8 +891,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_prepare_translation_alter().
-*/
+ * Implements hook_field_attach_prepare_translation_alter().
+ */
function #{moduleName}_field_attach_prepare_translation_alter(&\\$entity, \\$context) {
${1}
}"
@@ -905,8 +905,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_language_alter().
-*/
+ * Implements hook_field_language_alter().
+ */
function #{moduleName}_field_language_alter(&\\$display_language, \\$context) {
${1}
}"
@@ -919,8 +919,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_available_languages_alter().
-*/
+ * Implements hook_field_available_languages_alter().
+ */
function #{moduleName}_field_available_languages_alter(&\\$languages, \\$context) {
${1}
}"
@@ -933,8 +933,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_create_bundle().
-*/
+ * Implements hook_field_attach_create_bundle().
+ */
function #{moduleName}_field_attach_create_bundle(\\$entity_type, \\$bundle) {
${1}
}"
@@ -947,8 +947,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_rename_bundle().
-*/
+ * Implements hook_field_attach_rename_bundle().
+ */
function #{moduleName}_field_attach_rename_bundle(\\$entity_type, \\$bundle_old, \\$bundle_new) {
${1}
}"
@@ -961,8 +961,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_attach_delete_bundle().
-*/
+ * Implements hook_field_attach_delete_bundle().
+ */
function #{moduleName}_field_attach_delete_bundle(\\$entity_type, \\$bundle, \\$instances) {
${1}
}"
@@ -975,8 +975,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_info().
-*/
+ * Implements hook_field_storage_info().
+ */
function #{moduleName}_field_storage_info() {
${1}
}"
@@ -989,8 +989,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_info_alter().
-*/
+ * Implements hook_field_storage_info_alter().
+ */
function #{moduleName}_field_storage_info_alter(&\\$info) {
${1}
}"
@@ -1003,8 +1003,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_details().
-*/
+ * Implements hook_field_storage_details().
+ */
function #{moduleName}_field_storage_details(\\$field) {
${1}
}"
@@ -1017,8 +1017,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_details_alter().
-*/
+ * Implements hook_field_storage_details_alter().
+ */
function #{moduleName}_field_storage_details_alter(&\\$details, \\$field) {
${1}
}"
@@ -1031,8 +1031,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_load().
-*/
+ * Implements hook_field_storage_load().
+ */
function #{moduleName}_field_storage_load(\\$entity_type, &\\$entities, \\$age, \\$fields, \\$options) {
${1}
}"
@@ -1045,8 +1045,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_write().
-*/
+ * Implements hook_field_storage_write().
+ */
function #{moduleName}_field_storage_write(\\$entity_type, \\$entity, \\$op, \\$fields) {
${1}
}"
@@ -1059,8 +1059,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_delete().
-*/
+ * Implements hook_field_storage_delete().
+ */
function #{moduleName}_field_storage_delete(\\$entity_type, \\$entity, \\$fields) {
${1}
}"
@@ -1073,8 +1073,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_delete_revision().
-*/
+ * Implements hook_field_storage_delete_revision().
+ */
function #{moduleName}_field_storage_delete_revision(\\$entity_type, \\$entity, \\$fields) {
${1}
}"
@@ -1087,8 +1087,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_query().
-*/
+ * Implements hook_field_storage_query().
+ */
function #{moduleName}_field_storage_query(\\$query) {
${1}
}"
@@ -1101,8 +1101,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_create_field().
-*/
+ * Implements hook_field_storage_create_field().
+ */
function #{moduleName}_field_storage_create_field(\\$field) {
${1}
}"
@@ -1115,8 +1115,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_delete_field().
-*/
+ * Implements hook_field_storage_delete_field().
+ */
function #{moduleName}_field_storage_delete_field(\\$field) {
${1}
}"
@@ -1129,8 +1129,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_delete_instance().
-*/
+ * Implements hook_field_storage_delete_instance().
+ */
function #{moduleName}_field_storage_delete_instance(\\$instance) {
${1}
}"
@@ -1143,8 +1143,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_pre_load().
-*/
+ * Implements hook_field_storage_pre_load().
+ */
function #{moduleName}_field_storage_pre_load(\\$entity_type, \\$entities, \\$age, &\\$skip_fields, \\$options) {
${1}
}"
@@ -1157,8 +1157,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_pre_insert().
-*/
+ * Implements hook_field_storage_pre_insert().
+ */
function #{moduleName}_field_storage_pre_insert(\\$entity_type, \\$entity, &\\$skip_fields) {
${1}
}"
@@ -1171,8 +1171,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_pre_update().
-*/
+ * Implements hook_field_storage_pre_update().
+ */
function #{moduleName}_field_storage_pre_update(\\$entity_type, \\$entity, &\\$skip_fields) {
${1}
}"
@@ -1185,8 +1185,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_info_max_weight().
-*/
+ * Implements hook_field_info_max_weight().
+ */
function #{moduleName}_field_info_max_weight(\\$entity_type, \\$bundle, \\$context) {
${1}
}"
@@ -1199,8 +1199,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_display_alter().
-*/
+ * Implements hook_field_display_alter().
+ */
function #{moduleName}_field_display_alter(&\\$display, \\$context) {
${1}
}"
@@ -1213,8 +1213,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_display_ENTITY_TYPE_alter().
-*/
+ * Implements hook_field_display_ENTITY_TYPE_alter().
+ */
function #{moduleName}_field_display_ENTITY_TYPE_alter(&\\$display, \\$context) {
${1}
}"
@@ -1227,8 +1227,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_extra_fields_display_alter().
-*/
+ * Implements hook_field_extra_fields_display_alter().
+ */
function #{moduleName}_field_extra_fields_display_alter(&\\$displays, \\$context) {
${1}
}"
@@ -1241,8 +1241,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_widget_properties_alter().
-*/
+ * Implements hook_field_widget_properties_alter().
+ */
function #{moduleName}_field_widget_properties_alter(&\\$widget, \\$context) {
${1}
}"
@@ -1255,8 +1255,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_widget_properties_ENTITY_TYPE_alter().
-*/
+ * Implements hook_field_widget_properties_ENTITY_TYPE_alter().
+ */
function #{moduleName}_field_widget_properties_ENTITY_TYPE_alter(&\\$widget, \\$context) {
${1}
}"
@@ -1269,8 +1269,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_create_field().
-*/
+ * Implements hook_field_create_field().
+ */
function #{moduleName}_field_create_field(\\$field) {
${1}
}"
@@ -1283,8 +1283,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_create_instance().
-*/
+ * Implements hook_field_create_instance().
+ */
function #{moduleName}_field_create_instance(\\$instance) {
${1}
}"
@@ -1297,8 +1297,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_update_forbid().
-*/
+ * Implements hook_field_update_forbid().
+ */
function #{moduleName}_field_update_forbid(\\$field, \\$prior_field, \\$has_data) {
${1}
}"
@@ -1311,8 +1311,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_update_field().
-*/
+ * Implements hook_field_update_field().
+ */
function #{moduleName}_field_update_field(\\$field, \\$prior_field, \\$has_data) {
${1}
}"
@@ -1325,8 +1325,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_delete_field().
-*/
+ * Implements hook_field_delete_field().
+ */
function #{moduleName}_field_delete_field(\\$field) {
${1}
}"
@@ -1339,8 +1339,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_update_instance().
-*/
+ * Implements hook_field_update_instance().
+ */
function #{moduleName}_field_update_instance(\\$instance, \\$prior_instance) {
${1}
}"
@@ -1353,8 +1353,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_delete_instance().
-*/
+ * Implements hook_field_delete_instance().
+ */
function #{moduleName}_field_delete_instance(\\$instance) {
${1}
}"
@@ -1367,8 +1367,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_read_field().
-*/
+ * Implements hook_field_read_field().
+ */
function #{moduleName}_field_read_field(&\\$field) {
${1}
}"
@@ -1381,8 +1381,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_read_instance().
-*/
+ * Implements hook_field_read_instance().
+ */
function #{moduleName}_field_read_instance(\\$instance) {
${1}
}"
@@ -1395,8 +1395,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_purge_field().
-*/
+ * Implements hook_field_purge_field().
+ */
function #{moduleName}_field_purge_field(\\$field) {
${1}
}"
@@ -1409,8 +1409,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_purge_field_instance().
-*/
+ * Implements hook_field_purge_field_instance().
+ */
function #{moduleName}_field_purge_field_instance(\\$instance) {
${1}
}"
@@ -1423,8 +1423,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_purge_field().
-*/
+ * Implements hook_field_storage_purge_field().
+ */
function #{moduleName}_field_storage_purge_field(\\$field) {
${1}
}"
@@ -1437,8 +1437,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_purge_field_instance().
-*/
+ * Implements hook_field_storage_purge_field_instance().
+ */
function #{moduleName}_field_storage_purge_field_instance(\\$instance) {
${1}
}"
@@ -1451,8 +1451,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_storage_purge().
-*/
+ * Implements hook_field_storage_purge().
+ */
function #{moduleName}_field_storage_purge(\\$entity_type, \\$entity, \\$field, \\$instance) {
${1}
}"
@@ -1465,8 +1465,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_access().
-*/
+ * Implements hook_field_access().
+ */
function #{moduleName}_field_access(\\$op, \\$field, \\$entity_type, \\$entity, \\$account) {
${1}
}"
@@ -1479,8 +1479,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_settings_form().
-*/
+ * Implements hook_field_settings_form().
+ */
function #{moduleName}_field_settings_form(\\$field, \\$instance, \\$has_data) {
${1}
}"
@@ -1493,8 +1493,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_instance_settings_form().
-*/
+ * Implements hook_field_instance_settings_form().
+ */
function #{moduleName}_field_instance_settings_form(\\$field, \\$instance) {
${1}
}"
@@ -1507,8 +1507,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_widget_settings_form().
-*/
+ * Implements hook_field_widget_settings_form().
+ */
function #{moduleName}_field_widget_settings_form(\\$field, \\$instance) {
${1}
}"
@@ -1521,8 +1521,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_formatter_settings_form().
-*/
+ * Implements hook_field_formatter_settings_form().
+ */
function #{moduleName}_field_formatter_settings_form(\\$field, \\$instance, \\$view_mode, \\$form, &\\$form_state) {
${1}
}"
@@ -1535,8 +1535,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_field_formatter_settings_summary().
-*/
+ * Implements hook_field_formatter_settings_summary().
+ */
function #{moduleName}_field_formatter_settings_summary(\\$field, \\$instance, \\$view_mode) {
${1}
}"
@@ -1549,8 +1549,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_file_download_access().
-*/
+ * Implements hook_file_download_access().
+ */
function #{moduleName}_file_download_access(\\$field, \\$entity_type, \\$entity) {
${1}
}"
@@ -1563,8 +1563,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_file_download_access_alter().
-*/
+ * Implements hook_file_download_access_alter().
+ */
function #{moduleName}_file_download_access_alter(&\\$grants, \\$field, \\$entity_type, \\$entity) {
${1}
}"
@@ -1577,8 +1577,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_filter_info().
-*/
+ * Implements hook_filter_info().
+ */
function #{moduleName}_filter_info() {
${1}
}"
@@ -1591,8 +1591,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_filter_info_alter().
-*/
+ * Implements hook_filter_info_alter().
+ */
function #{moduleName}_filter_info_alter(&\\$info) {
${1}
}"
@@ -1605,8 +1605,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_filter_FILTER_settings().
-*/
+ * Implements hook_filter_FILTER_settings().
+ */
function #{moduleName}_filter_FILTER_settings(\\$form, &\\$form_state, \\$filter, \\$format, \\$defaults, \\$filters) {
${1}
}"
@@ -1619,8 +1619,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_filter_FILTER_prepare().
-*/
+ * Implements hook_filter_FILTER_prepare().
+ */
function #{moduleName}_filter_FILTER_prepare(\\$text, \\$filter, \\$format, \\$langcode, \\$cache, \\$cache_id) {
${1}
}"
@@ -1633,8 +1633,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_filter_FILTER_process().
-*/
+ * Implements hook_filter_FILTER_process().
+ */
function #{moduleName}_filter_FILTER_process(\\$text, \\$filter, \\$format, \\$langcode, \\$cache, \\$cache_id) {
${1}
}"
@@ -1647,8 +1647,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_filter_FILTER_tips().
-*/
+ * Implements hook_filter_FILTER_tips().
+ */
function #{moduleName}_filter_FILTER_tips(\\$filter, \\$format, \\$long) {
${1}
}"
@@ -1661,8 +1661,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_filter_format_insert().
-*/
+ * Implements hook_filter_format_insert().
+ */
function #{moduleName}_filter_format_insert(\\$format) {
${1}
}"
@@ -1675,8 +1675,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_filter_format_update().
-*/
+ * Implements hook_filter_format_update().
+ */
function #{moduleName}_filter_format_update(\\$format) {
${1}
}"
@@ -1689,8 +1689,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_filter_format_disable().
-*/
+ * Implements hook_filter_format_disable().
+ */
function #{moduleName}_filter_format_disable(\\$format) {
${1}
}"
@@ -1703,8 +1703,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_help().
-*/
+ * Implements hook_help().
+ */
function #{moduleName}_help(\\$path, \\$arg) {
${1}
}"
@@ -1717,8 +1717,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_image_effect_info().
-*/
+ * Implements hook_image_effect_info().
+ */
function #{moduleName}_image_effect_info() {
${1}
}"
@@ -1731,8 +1731,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_image_effect_info_alter().
-*/
+ * Implements hook_image_effect_info_alter().
+ */
function #{moduleName}_image_effect_info_alter(&\\$effects) {
${1}
}"
@@ -1745,8 +1745,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_image_style_save().
-*/
+ * Implements hook_image_style_save().
+ */
function #{moduleName}_image_style_save(\\$style) {
${1}
}"
@@ -1759,8 +1759,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_image_style_delete().
-*/
+ * Implements hook_image_style_delete().
+ */
function #{moduleName}_image_style_delete(\\$style) {
${1}
}"
@@ -1773,8 +1773,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_image_style_flush().
-*/
+ * Implements hook_image_style_flush().
+ */
function #{moduleName}_image_style_flush(\\$style) {
${1}
}"
@@ -1787,8 +1787,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_image_styles_alter().
-*/
+ * Implements hook_image_styles_alter().
+ */
function #{moduleName}_image_styles_alter(&\\$styles) {
${1}
}"
@@ -1801,8 +1801,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_image_default_styles().
-*/
+ * Implements hook_image_default_styles().
+ */
function #{moduleName}_image_default_styles() {
${1}
}"
@@ -1815,8 +1815,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_locale().
-*/
+ * Implements hook_locale().
+ */
function #{moduleName}_locale(\\$op = \'groups\') {
${1}
}"
@@ -1829,8 +1829,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_language_init().
-*/
+ * Implements hook_language_init().
+ */
function #{moduleName}_language_init() {
${1}
}"
@@ -1843,8 +1843,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_language_switch_links_alter().
-*/
+ * Implements hook_language_switch_links_alter().
+ */
function #{moduleName}_language_switch_links_alter(array &\\$links, \\$type, \\$path) {
${1}
}"
@@ -1857,8 +1857,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_language_types_info().
-*/
+ * Implements hook_language_types_info().
+ */
function #{moduleName}_language_types_info() {
${1}
}"
@@ -1871,8 +1871,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_language_types_info_alter().
-*/
+ * Implements hook_language_types_info_alter().
+ */
function #{moduleName}_language_types_info_alter(array &\\$language_types) {
${1}
}"
@@ -1885,8 +1885,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_language_negotiation_info().
-*/
+ * Implements hook_language_negotiation_info().
+ */
function #{moduleName}_language_negotiation_info() {
${1}
}"
@@ -1899,8 +1899,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_language_negotiation_info_alter().
-*/
+ * Implements hook_language_negotiation_info_alter().
+ */
function #{moduleName}_language_negotiation_info_alter(array &\\$language_providers) {
${1}
}"
@@ -1913,8 +1913,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_multilingual_settings_changed().
-*/
+ * Implements hook_multilingual_settings_changed().
+ */
function #{moduleName}_multilingual_settings_changed() {
${1}
}"
@@ -1927,8 +1927,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_language_fallback_candidates_alter().
-*/
+ * Implements hook_language_fallback_candidates_alter().
+ */
function #{moduleName}_language_fallback_candidates_alter(array &\\$fallback_candidates) {
${1}
}"
@@ -1941,8 +1941,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_menu_insert().
-*/
+ * Implements hook_menu_insert().
+ */
function #{moduleName}_menu_insert(\\$menu) {
${1}
}"
@@ -1955,8 +1955,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_menu_update().
-*/
+ * Implements hook_menu_update().
+ */
function #{moduleName}_menu_update(\\$menu) {
${1}
}"
@@ -1969,8 +1969,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_menu_delete().
-*/
+ * Implements hook_menu_delete().
+ */
function #{moduleName}_menu_delete(\\$menu) {
${1}
}"
@@ -1983,8 +1983,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_grants().
-*/
+ * Implements hook_node_grants().
+ */
function #{moduleName}_node_grants(\\$account, \\$op) {
${1}
}"
@@ -1997,8 +1997,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_access_records().
-*/
+ * Implements hook_node_access_records().
+ */
function #{moduleName}_node_access_records(\\$node) {
${1}
}"
@@ -2011,8 +2011,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_access_records_alter().
-*/
+ * Implements hook_node_access_records_alter().
+ */
function #{moduleName}_node_access_records_alter(&\\$grants, \\$node) {
${1}
}"
@@ -2025,8 +2025,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_grants_alter().
-*/
+ * Implements hook_node_grants_alter().
+ */
function #{moduleName}_node_grants_alter(&\\$grants, \\$account, \\$op) {
${1}
}"
@@ -2039,8 +2039,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_operations().
-*/
+ * Implements hook_node_operations().
+ */
function #{moduleName}_node_operations() {
${1}
}"
@@ -2053,8 +2053,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_delete().
-*/
+ * Implements hook_node_delete().
+ */
function #{moduleName}_node_delete(\\$node) {
${1}
}"
@@ -2067,8 +2067,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_revision_delete().
-*/
+ * Implements hook_node_revision_delete().
+ */
function #{moduleName}_node_revision_delete(\\$node) {
${1}
}"
@@ -2081,8 +2081,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_insert().
-*/
+ * Implements hook_node_insert().
+ */
function #{moduleName}_node_insert(\\$node) {
${1}
}"
@@ -2095,8 +2095,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_load().
-*/
+ * Implements hook_node_load().
+ */
function #{moduleName}_node_load(\\$nodes, \\$types) {
${1}
}"
@@ -2109,8 +2109,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_access().
-*/
+ * Implements hook_node_access().
+ */
function #{moduleName}_node_access(\\$node, \\$op, \\$account) {
${1}
}"
@@ -2123,8 +2123,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_prepare().
-*/
+ * Implements hook_node_prepare().
+ */
function #{moduleName}_node_prepare(\\$node) {
${1}
}"
@@ -2137,8 +2137,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_search_result().
-*/
+ * Implements hook_node_search_result().
+ */
function #{moduleName}_node_search_result(\\$node) {
${1}
}"
@@ -2151,8 +2151,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_presave().
-*/
+ * Implements hook_node_presave().
+ */
function #{moduleName}_node_presave(\\$node) {
${1}
}"
@@ -2165,8 +2165,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_update().
-*/
+ * Implements hook_node_update().
+ */
function #{moduleName}_node_update(\\$node) {
${1}
}"
@@ -2179,8 +2179,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_update_index().
-*/
+ * Implements hook_node_update_index().
+ */
function #{moduleName}_node_update_index(\\$node) {
${1}
}"
@@ -2193,8 +2193,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_validate().
-*/
+ * Implements hook_node_validate().
+ */
function #{moduleName}_node_validate(\\$node, \\$form, &\\$form_state) {
${1}
}"
@@ -2207,8 +2207,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_submit().
-*/
+ * Implements hook_node_submit().
+ */
function #{moduleName}_node_submit(\\$node, \\$form, &\\$form_state) {
${1}
}"
@@ -2221,8 +2221,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_view().
-*/
+ * Implements hook_node_view().
+ */
function #{moduleName}_node_view(\\$node, \\$view_mode, \\$langcode) {
${1}
}"
@@ -2235,8 +2235,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_view_alter().
-*/
+ * Implements hook_node_view_alter().
+ */
function #{moduleName}_node_view_alter(&\\$build) {
${1}
}"
@@ -2249,8 +2249,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_info().
-*/
+ * Implements hook_node_info().
+ */
function #{moduleName}_node_info() {
${1}
}"
@@ -2263,8 +2263,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_ranking().
-*/
+ * Implements hook_ranking().
+ */
function #{moduleName}_ranking() {
${1}
}"
@@ -2277,8 +2277,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_type_insert().
-*/
+ * Implements hook_node_type_insert().
+ */
function #{moduleName}_node_type_insert(\\$info) {
${1}
}"
@@ -2291,8 +2291,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_type_update().
-*/
+ * Implements hook_node_type_update().
+ */
function #{moduleName}_node_type_update(\\$info) {
${1}
}"
@@ -2305,8 +2305,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_node_type_delete().
-*/
+ * Implements hook_node_type_delete().
+ */
function #{moduleName}_node_type_delete(\\$info) {
${1}
}"
@@ -2319,8 +2319,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_delete().
-*/
+ * Implements hook_delete().
+ */
function #{moduleName}_delete(\\$node) {
${1}
}"
@@ -2333,8 +2333,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_prepare().
-*/
+ * Implements hook_prepare().
+ */
function #{moduleName}_prepare(\\$node) {
${1}
}"
@@ -2347,8 +2347,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_form().
-*/
+ * Implements hook_form().
+ */
function #{moduleName}_form(\\$node, &\\$form_state) {
${1}
}"
@@ -2361,8 +2361,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_insert().
-*/
+ * Implements hook_insert().
+ */
function #{moduleName}_insert(\\$node) {
${1}
}"
@@ -2375,8 +2375,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_load().
-*/
+ * Implements hook_load().
+ */
function #{moduleName}_load(\\$nodes) {
${1}
}"
@@ -2389,8 +2389,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_update().
-*/
+ * Implements hook_update().
+ */
function #{moduleName}_update(\\$node) {
${1}
}"
@@ -2403,8 +2403,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_validate().
-*/
+ * Implements hook_validate().
+ */
function #{moduleName}_validate(\\$node, \\$form, &\\$form_state) {
${1}
}"
@@ -2417,8 +2417,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_view().
-*/
+ * Implements hook_view().
+ */
function #{moduleName}_view(\\$node, \\$view_mode) {
${1}
}"
@@ -2431,8 +2431,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_openid().
-*/
+ * Implements hook_openid().
+ */
function #{moduleName}_openid(\\$op, \\$request) {
${1}
}"
@@ -2445,8 +2445,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_openid_response().
-*/
+ * Implements hook_openid_response().
+ */
function #{moduleName}_openid_response(\\$response, \\$account) {
${1}
}"
@@ -2459,8 +2459,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_openid_discovery_method_info().
-*/
+ * Implements hook_openid_discovery_method_info().
+ */
function #{moduleName}_openid_discovery_method_info() {
${1}
}"
@@ -2473,8 +2473,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_openid_discovery_method_info_alter().
-*/
+ * Implements hook_openid_discovery_method_info_alter().
+ */
function #{moduleName}_openid_discovery_method_info_alter(&\\$methods) {
${1}
}"
@@ -2487,8 +2487,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_openid_normalization_method_info().
-*/
+ * Implements hook_openid_normalization_method_info().
+ */
function #{moduleName}_openid_normalization_method_info() {
${1}
}"
@@ -2501,8 +2501,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_openid_normalization_method_info_alter().
-*/
+ * Implements hook_openid_normalization_method_info_alter().
+ */
function #{moduleName}_openid_normalization_method_info_alter(&\\$methods) {
${1}
}"
@@ -2515,8 +2515,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_overlay_parent_initialize().
-*/
+ * Implements hook_overlay_parent_initialize().
+ */
function #{moduleName}_overlay_parent_initialize() {
${1}
}"
@@ -2529,8 +2529,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_overlay_child_initialize().
-*/
+ * Implements hook_overlay_child_initialize().
+ */
function #{moduleName}_overlay_child_initialize() {
${1}
}"
@@ -2543,8 +2543,8 @@
moduleName = find_module_name(ENV['TM_DIRECTORY'])
"
/**
-* Implements hook_path_insert().
-*/
+ * Implements hook_path_insert().
+ */
function #{moduleName}_path_insert(\\$path) {
${1}
}"