summaryrefslogtreecommitdiff
path: root/modules/trigger
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-04 16:49:48 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-04 16:49:48 +0000
commit1da26fadfe9cdcbd89a912b9f61c710adff4c6c8 (patch)
treed77a0c5420a53c65d24b8ac1842b7f1e356c39d3 /modules/trigger
parent8523aca33e828c638f2373e5be4e80ed30866a58 (diff)
downloadbrdo-1da26fadfe9cdcbd89a912b9f61c710adff4c6c8.tar.gz
brdo-1da26fadfe9cdcbd89a912b9f61c710adff4c6c8.tar.bz2
- Patch #502190 by jhodgdon, stella, sun: hook implementation headers out of compliance with standards.
Diffstat (limited to 'modules/trigger')
-rw-r--r--modules/trigger/tests/trigger_test.module2
-rw-r--r--modules/trigger/trigger.install4
-rw-r--r--modules/trigger/trigger.module54
3 files changed, 30 insertions, 30 deletions
diff --git a/modules/trigger/tests/trigger_test.module b/modules/trigger/tests/trigger_test.module
index 028f64b7d..ad7c4ec0e 100644
--- a/modules/trigger/tests/trigger_test.module
+++ b/modules/trigger/tests/trigger_test.module
@@ -7,7 +7,7 @@
*/
/**
- * Implementation of hook_action_info().
+ * Implements hook_action_info().
*/
function trigger_test_action_info() {
// Register an action that can be assigned to the trigger "cron".
diff --git a/modules/trigger/trigger.install b/modules/trigger/trigger.install
index d17432615..e34c66c27 100644
--- a/modules/trigger/trigger.install
+++ b/modules/trigger/trigger.install
@@ -7,7 +7,7 @@
*/
/**
- * Implement hook_schema().
+ * Implements hook_schema().
*/
function trigger_schema() {
$schema['trigger_assignments'] = array(
@@ -43,7 +43,7 @@ function trigger_schema() {
}
/**
- * Implement hook_install().
+ * Implements hook_install().
*/
function trigger_install() {
// Do initial synchronization of actions in code and the database.
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module
index 0dc6b0f6f..644be05dd 100644
--- a/modules/trigger/trigger.module
+++ b/modules/trigger/trigger.module
@@ -8,7 +8,7 @@
*/
/**
- * Implement hook_help().
+ * Implements hook_help().
*/
function trigger_help($path, $arg) {
$explanation = '<p>' . t('Triggers are system events, such as when new content is added or when a user logs in. The trigger module associates these triggers with actions (functional tasks), such as unpublishing content or e-mailing an administrator. The <a href="@url">Actions settings page</a> contains a list of existing actions and provides the ability to create and configure additional actions.', array('@url' => url('admin/config/system/actions'))) . '</p>';
@@ -32,7 +32,7 @@ function trigger_help($path, $arg) {
}
/**
- * Implement hook_menu().
+ * Implements hook_menu().
*/
function trigger_menu() {
$items['admin/structure/trigger'] = array(
@@ -82,7 +82,7 @@ function trigger_menu() {
}
/**
- * Implement hook_trigger_info().
+ * Implements hook_trigger_info().
*
* Defines all the triggers that this module implements triggers for.
*/
@@ -181,7 +181,7 @@ function trigger_get_assigned_actions($hook) {
}
/**
- * Implement hook_theme().
+ * Implements hook_theme().
*/
function trigger_theme() {
return array(
@@ -193,7 +193,7 @@ function trigger_theme() {
}
/**
- * Implement hook_forms().
+ * Implements hook_forms().
*
* We re-use code by using the same assignment form definition for each hook.
*/
@@ -288,35 +288,35 @@ function _trigger_node($node, $hook, $a3 = NULL, $a4 = NULL) {
}
/**
- * Implement hook_node_view().
+ * Implements hook_node_view().
*/
function trigger_node_view($node, $build_mode) {
_trigger_node($node, 'node_view', $build_mode);
}
/**
- * Implement hook_node_update().
+ * Implements hook_node_update().
*/
function trigger_node_update($node) {
_trigger_node($node, 'node_update');
}
/**
- * Implement hook_node_presave().
+ * Implements hook_node_presave().
*/
function trigger_node_presave($node) {
_trigger_node($node, 'node_presave');
}
/**
- * Implement hook_node_insert().
+ * Implements hook_node_insert().
*/
function trigger_node_insert($node) {
_trigger_node($node, 'node_insert');
}
/**
- * Implement hook_node_delete().
+ * Implements hook_node_delete().
*/
function trigger_node_delete($node) {
_trigger_node($node, 'node_delete');
@@ -352,35 +352,35 @@ function _trigger_normalize_comment_context($type, $comment) {
}
/**
- * Implement hook_comment_presave().
+ * Implements hook_comment_presave().
*/
function trigger_comment_presave($comment) {
_trigger_comment($comment, 'comment_presave');
}
/**
- * Implement hook_comment_insert().
+ * Implements hook_comment_insert().
*/
function trigger_comment_insert($comment) {
_trigger_comment($comment, 'comment_insert');
}
/**
- * Implement hook_comment_update().
+ * Implements hook_comment_update().
*/
function trigger_comment_update($comment) {
_trigger_comment($comment, 'comment_update');
}
/**
- * Implement hook_comment_delete().
+ * Implements hook_comment_delete().
*/
function trigger_comment_delete($comment) {
_trigger_comment($comment, 'comment_delete');
}
/**
- * Implement hook_comment_view().
+ * Implements hook_comment_view().
*/
function trigger_comment_view($comment) {
_trigger_comment($comment, 'comment_view');
@@ -423,7 +423,7 @@ function _trigger_comment($a1, $hook) {
}
/**
- * Implement hook_cron().
+ * Implements hook_cron().
*/
function trigger_cron() {
$aids = trigger_get_assigned_actions('cron');
@@ -468,42 +468,42 @@ function _trigger_normalize_user_context($type, $account) {
}
/**
- * Implement hook_user_login().
+ * Implements hook_user_login().
*/
function trigger_user_login(&$edit, $account, $category) {
_trigger_user('user_login', $edit, $account, $category);
}
/**
- * Implement hook_user_logout().
+ * Implements hook_user_logout().
*/
function trigger_user_logout($account) {
_trigger_user('user_logout', $edit = NULL, $account);
}
/**
- * Implement hook_user_presave().
+ * Implements hook_user_presave().
*/
function trigger_user_presave(&$edit, $account, $category) {
_trigger_user('user_presave', $edit, $account, $category);
}
/**
- * Implement hook_user_insert().
+ * Implements hook_user_insert().
*/
function trigger_user_insert(&$edit, $account, $category) {
_trigger_user('user_insert', $edit, $account, $category);
}
/**
- * Implement hook_user_update().
+ * Implements hook_user_update().
*/
function trigger_user_update(&$edit, $account, $category) {
_trigger_user('user_update', $edit, $account, $category);
}
/**
- * Implement hook_user_cancel().
+ * Implements hook_user_cancel().
*/
function trigger_user_cancel($edit, $account, $method) {
switch ($method) {
@@ -515,7 +515,7 @@ function trigger_user_cancel($edit, $account, $method) {
}
/**
- * Implement hook_user_view().
+ * Implements hook_user_view().
*/
function trigger_user_view($account) {
_trigger_user('user_view', $edit = NULL, $account, NULL);
@@ -568,28 +568,28 @@ function _trigger_taxonomy($hook, $array) {
}
/**
- * Implement hook_taxonomy_term_insert().
+ * Implements hook_taxonomy_term_insert().
*/
function trigger_taxonomy_term_insert($term) {
_trigger_taxonomy('taxonomy_term_insert', (array) $term);
}
/**
- * Implement hook_taxonomy_term_update().
+ * Implements hook_taxonomy_term_update().
*/
function trigger_taxonomy_term_update($term) {
_trigger_taxonomy('taxonomy_term_update', (array) $term);
}
/**
- * Implement hook_taxonomy_term_delete().
+ * Implements hook_taxonomy_term_delete().
*/
function trigger_taxonomy_term_delete($term) {
_trigger_taxonomy('taxonomy_term_delete', (array) $term);
}
/**
- * Implement hook_actions_delete().
+ * Implements hook_actions_delete().
*
* Removes all trigger entries for the given action, when an action is deleted.
*/