diff --git a/modules/aggregator/aggregator.fetcher.inc b/modules/aggregator/aggregator.fetcher.inc index 002209461d1..7c697052c90 100644 --- a/modules/aggregator/aggregator.fetcher.inc +++ b/modules/aggregator/aggregator.fetcher.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_aggregator_fetch_info(). + * Implements hook_aggregator_fetch_info(). */ function aggregator_aggregator_fetch_info() { return array( @@ -17,7 +17,7 @@ function aggregator_aggregator_fetch_info() { } /** - * Implement hook_aggregator_fetch(). + * Implements hook_aggregator_fetch(). */ function aggregator_aggregator_fetch($feed) { $feed->source_string = FALSE; diff --git a/modules/aggregator/aggregator.install b/modules/aggregator/aggregator.install index 8cfb79c6fcb..7985f6a8825 100644 --- a/modules/aggregator/aggregator.install +++ b/modules/aggregator/aggregator.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function aggregator_uninstall() { variable_del('aggregator_allowed_html_tags'); @@ -21,7 +21,7 @@ function aggregator_uninstall() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function aggregator_schema() { $schema['aggregator_category'] = array( diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index 38d7b2d71e3..6dc9d7afd22 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -12,7 +12,7 @@ define('AGGREGATOR_CLEAR_NEVER', 0); /** - * Implement hook_help(). + * Implements hook_help(). */ function aggregator_help($path, $arg) { switch ($path) { @@ -46,7 +46,7 @@ function aggregator_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function aggregator_theme() { return array( @@ -94,7 +94,7 @@ function aggregator_theme() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function aggregator_menu() { $items['admin/config/services/aggregator'] = array( @@ -282,7 +282,7 @@ function _aggregator_category_title($category) { } /** - * Implement hook_init(). + * Implements hook_init(). */ function aggregator_init() { drupal_add_css(drupal_get_path('module', 'aggregator') . '/aggregator.css'); @@ -299,7 +299,7 @@ function _aggregator_has_categories() { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function aggregator_permission() { return array( @@ -313,7 +313,7 @@ function aggregator_permission() { } /** - * Implement hook_cron(). + * Implements hook_cron(). * * Queues news feeds for updates once their refresh interval has elapsed. */ @@ -329,7 +329,7 @@ function aggregator_cron() { } /** - * Implement hook_cron_queue_info(). + * Implements hook_cron_queue_info(). */ function aggregator_cron_queue_info() { $queues['aggregator_feeds'] = array( @@ -340,7 +340,7 @@ function aggregator_cron_queue_info() { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function aggregator_block_info() { $block = array(); @@ -356,7 +356,7 @@ function aggregator_block_info() { } /** - * Implement hook_block_configure(). + * Implements hook_block_configure(). */ function aggregator_block_configure($delta = '') { list($type, $id) = explode('-', $delta); @@ -373,7 +373,7 @@ function aggregator_block_configure($delta = '') { } /** - * Implement hook_block_save(). + * Implements hook_block_save(). */ function aggregator_block_save($delta = '', $edit = array()) { list($type, $id) = explode('-', $delta); @@ -386,7 +386,7 @@ function aggregator_block_save($delta = '', $edit = array()) { } /** - * Implement hook_block_view(). + * Implements hook_block_view(). * * Generates blocks for the latest news items in each category and feed. */ diff --git a/modules/aggregator/aggregator.parser.inc b/modules/aggregator/aggregator.parser.inc index fbd0deda4dd..4d6f4fc4743 100644 --- a/modules/aggregator/aggregator.parser.inc +++ b/modules/aggregator/aggregator.parser.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_aggregator_parse_info(). + * Implements hook_aggregator_parse_info(). */ function aggregator_aggregator_parse_info() { return array( @@ -17,7 +17,7 @@ function aggregator_aggregator_parse_info() { } /** - * Implement hook_aggregator_parse(). + * Implements hook_aggregator_parse(). */ function aggregator_aggregator_parse($feed) { global $channel, $image; diff --git a/modules/aggregator/aggregator.processor.inc b/modules/aggregator/aggregator.processor.inc index 83ed207c91c..2888e2fa6af 100644 --- a/modules/aggregator/aggregator.processor.inc +++ b/modules/aggregator/aggregator.processor.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_aggregator_process_info(). + * Implements hook_aggregator_process_info(). */ function aggregator_aggregator_process_info() { return array( @@ -17,7 +17,7 @@ function aggregator_aggregator_process_info() { } /** - * Implement hook_aggregator_process(). + * Implements hook_aggregator_process(). */ function aggregator_aggregator_process($feed) { if (is_object($feed)) { @@ -45,7 +45,7 @@ function aggregator_aggregator_process($feed) { } /** - * Implement hook_aggregator_remove(). + * Implements hook_aggregator_remove(). */ function aggregator_aggregator_remove($feed) { $iids = db_query('SELECT iid FROM {aggregator_item} WHERE fid = :fid', array(':fid' => $feed->fid))->fetchCol(); @@ -62,7 +62,7 @@ function aggregator_aggregator_remove($feed) { } /** - * Implement hook_form_aggregator_admin_form_alter(). + * Implements hook_form_aggregator_admin_form_alter(). * * Form alter aggregator module's own form to keep processor functionality * separate from aggregator API functionality. diff --git a/modules/aggregator/tests/aggregator_test.module b/modules/aggregator/tests/aggregator_test.module index 98e58947282..d5667f26978 100644 --- a/modules/aggregator/tests/aggregator_test.module +++ b/modules/aggregator/tests/aggregator_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function aggregator_test_menu() { $items['aggregator/test-feed'] = array( diff --git a/modules/block/block.install b/modules/block/block.install index 04fa793d78d..260d2e1bb6a 100644 --- a/modules/block/block.install +++ b/modules/block/block.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function block_schema() { $schema['block'] = array( @@ -204,7 +204,7 @@ function block_schema() { } /** - * Implement hook_install(). + * Implements hook_install(). */ function block_install() { diff --git a/modules/block/block.module b/modules/block/block.module index 346141203d8..cec2323bcd2 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -12,7 +12,7 @@ define('BLOCK_REGION_NONE', -1); /** - * Implement hook_help(). + * Implements hook_help(). */ function block_help($path, $arg) { switch ($path) { @@ -43,7 +43,7 @@ function block_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function block_theme() { return array( @@ -60,7 +60,7 @@ function block_theme() { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function block_permission() { return array( @@ -71,7 +71,7 @@ function block_permission() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function block_menu() { $default_theme = variable_get('theme_default', 'garland'); @@ -166,7 +166,7 @@ function _block_custom_theme($theme = NULL) { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function block_block_info() { $blocks = array(); @@ -181,7 +181,7 @@ function block_block_info() { } /** - * Implement hook_block_configure(). + * Implements hook_block_configure(). */ function block_block_configure($delta = 0) { $custom_block = array('format' => filter_default_format()); @@ -192,14 +192,14 @@ function block_block_configure($delta = 0) { } /** - * Implement hook_block_save(). + * Implements hook_block_save(). */ function block_block_save($delta = 0, $edit = array()) { block_custom_block_save($edit, $delta); } /** - * Implement hook_block_view(). + * Implements hook_block_view(). * * Generates the administrator-defined blocks for display. */ @@ -210,7 +210,7 @@ function block_block_view($delta = 0, $edit = array()) { } /** - * Implement hook_page_build(). + * Implements hook_page_build(). * * Render blocks into their regions. */ @@ -461,7 +461,7 @@ function block_custom_block_save($edit, $delta) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function block_form_user_profile_form_alter(&$form, &$form_state) { if ($form['#user_category'] == 'account') { @@ -626,7 +626,7 @@ function _block_load_blocks() { } /** - * Implement hook_block_info_alter(). + * Implements hook_block_info_alter(). * * Check the page, user role, content type and user specific visibilty settings. * Remove the block if the visibility conditions are not met. @@ -833,7 +833,7 @@ function _block_get_cache_id($block) { } /** - * Implement hook_flush_caches(). + * Implements hook_flush_caches(). */ function block_flush_caches() { return array('cache_block'); @@ -878,7 +878,7 @@ function template_preprocess_block(&$variables) { } /** - * Implement hook_user_role_delete(). + * Implements hook_user_role_delete(). * * Remove deleted role from blocks that use it. */ @@ -889,7 +889,7 @@ function block_user_role_delete($role) { } /** - * Implement hook_filter_format_delete(). + * Implements hook_filter_format_delete(). */ function block_filter_format_delete($format, $fallback) { db_update('block_custom') @@ -899,7 +899,7 @@ function block_filter_format_delete($format, $fallback) { } /** - * Implement hook_menu_delete(). + * Implements hook_menu_delete(). */ function block_menu_delete($menu) { db_delete('block') @@ -913,7 +913,7 @@ function block_menu_delete($menu) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function block_form_system_performance_settings_alter(&$form, &$form_state) { $disabled = count(module_implements('node_grants')); diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 5e9d894bb5a..216740f6994 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_node_info(). + * Implements hook_node_info(). */ function blog_node_info() { return array( @@ -20,7 +20,7 @@ function blog_node_info() { } /** - * Implement hook_user_view(). + * Implements hook_user_view(). */ function blog_user_view($account) { if (user_access('create blog content', $account)) { @@ -34,7 +34,7 @@ function blog_user_view($account) { } /** - * Implement hook_help(). + * Implements hook_help(). */ function blog_help($path, $arg) { switch ($path) { @@ -57,14 +57,14 @@ function blog_help($path, $arg) { } /** - * Implement hook_form(). + * Implements hook_form(). */ function blog_form($node, $form_state) { return node_content_form($node, $form_state); } /** - * Implement hook_view(). + * Implements hook_view(). */ function blog_view($node, $build_mode) { if ((bool)menu_get_object()) { @@ -75,7 +75,7 @@ function blog_view($node, $build_mode) { } /** - * Implement hook_node_view(). + * Implements hook_node_view(). */ function blog_node_view($node, $build_mode = 'full') { if ($build_mode != 'rss') { @@ -95,7 +95,7 @@ function blog_node_view($node, $build_mode = 'full') { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function blog_menu() { $items['blog'] = array( @@ -176,7 +176,7 @@ function _blog_post_exists($account) { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function blog_block_info() { $block['recent']['info'] = t('Recent blog posts'); @@ -184,7 +184,7 @@ function blog_block_info() { } /** - * Implement hook_block_view(). + * Implements hook_block_view(). * * Displays the most recent 10 blog titles. */ diff --git a/modules/book/book.install b/modules/book/book.install index e93518e24a0..ae324191b13 100644 --- a/modules/book/book.install +++ b/modules/book/book.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_install(). + * Implements hook_install(). */ function book_install() { // Add the node type. @@ -15,7 +15,7 @@ function book_install() { } /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function book_uninstall() { // Delete menu links. @@ -45,7 +45,7 @@ function _book_install_type_create() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function book_schema() { $schema['book'] = array( diff --git a/modules/book/book.module b/modules/book/book.module index bcb0682db92..befc8258aa3 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function book_help($path, $arg) { switch ($path) { @@ -34,7 +34,7 @@ function book_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function book_theme() { return array( @@ -64,7 +64,7 @@ function book_theme() { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function book_permission() { return array( @@ -121,7 +121,7 @@ function book_node_view_link($node, $build_mode) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function book_menu() { $items['admin/content/book'] = array( @@ -213,14 +213,14 @@ function _book_outline_remove_access($node) { } /** - * Implement hook_init(). + * Implements hook_init(). */ function book_init() { drupal_add_css(drupal_get_path('module', 'book') . '/book.css'); } /** - * Implement hook_field_build_modes(). + * Implements hook_field_build_modes(). */ function book_field_build_modes($obj_type) { $modes = array(); @@ -233,7 +233,7 @@ function book_field_build_modes($obj_type) { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function book_block_info() { $block = array(); @@ -244,7 +244,7 @@ function book_block_info() { } /** - * Implement hook_block_view(). + * Implements hook_block_view(). * * Displays the book table of contents in a block when the current page is a * single-node view of a book node. @@ -298,7 +298,7 @@ function book_block_view($delta = '') { } /** - * Implement hook_block_configure(). + * Implements hook_block_configure(). */ function book_block_configure($delta = '') { $block = array(); @@ -318,7 +318,7 @@ function book_block_configure($delta = '') { } /** - * Implement hook_block_save(). + * Implements hook_block_save(). */ function book_block_save($delta = '', $edit = array()) { $block = array(); @@ -377,7 +377,7 @@ function book_get_books() { } /** - * Implement hook_form_alter(). + * Implements hook_form_alter(). * * Adds the book fieldset to the node form. * @@ -744,7 +744,7 @@ function book_menu_name($bid) { } /** - * Implement hook_node_load(). + * Implements hook_node_load(). */ function book_node_load($nodes, $types) { $result = db_query("SELECT * FROM {book} b INNER JOIN {menu_links} ml ON b.mlid = ml.mlid WHERE b.nid IN (:nids)", array(':nids' => array_keys($nodes)), array('fetch' => PDO::FETCH_ASSOC)); @@ -757,7 +757,7 @@ function book_node_load($nodes, $types) { } /** - * Implement hook_node_view(). + * Implements hook_node_view(). */ function book_node_view($node, $build_mode) { if ($build_mode == 'full') { @@ -775,7 +775,7 @@ function book_node_view($node, $build_mode) { } /** - * Implement hook_page_alter(). + * Implements hook_page_alter(). * * Add the book menu to the list of menus used to build the active trail when * viewing a book page. @@ -789,7 +789,7 @@ function book_page_alter(&$page) { } /** - * Implement hook_node_presave(). + * Implements hook_node_presave(). */ function book_node_presave($node) { // Always save a revision for non-administrators. @@ -807,7 +807,7 @@ function book_node_presave($node) { } /** - * Implement hook_node_insert(). + * Implements hook_node_insert(). */ function book_node_insert($node) { if (!empty($node->book['bid'])) { @@ -822,7 +822,7 @@ function book_node_insert($node) { } /** - * Implement hook_node_update(). + * Implements hook_node_update(). */ function book_node_update($node) { if (!empty($node->book['bid'])) { @@ -837,7 +837,7 @@ function book_node_update($node) { } /** - * Implement hook_node_delete(). + * Implements hook_node_delete(). */ function book_node_delete($node) { if (!empty($node->book['bid'])) { @@ -860,7 +860,7 @@ function book_node_delete($node) { } /** - * Implement hook_node_prepare(). + * Implements hook_node_prepare(). */ function book_node_prepare($node) { // Prepare defaults for the add/edit form. @@ -1141,7 +1141,7 @@ function book_type_is_allowed($type) { } /** - * Implement hook_node_type_update(). + * Implements hook_node_type_update(). * * Update book module's persistent variables if the machine-readable name of a * node type is changed. diff --git a/modules/color/color.module b/modules/color/color.module index 8c22918c78e..740b07cd0b7 100644 --- a/modules/color/color.module +++ b/modules/color/color.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_help(). + * Implements hook_help(). */ function color_help($path, $arg) { switch ($path) { @@ -20,7 +20,7 @@ function color_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function color_theme() { return array( @@ -31,7 +31,7 @@ function color_theme() { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function color_form_system_theme_settings_alter(&$form, &$form_state) { if (isset($form_state['build_info']['args'][0]) && ($theme = $form_state['build_info']['args'][0]) && color_get_info($theme) && function_exists('gd_info')) { @@ -48,7 +48,7 @@ function color_form_system_theme_settings_alter(&$form, &$form_state) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function color_form_system_themes_alter(&$form, &$form_state) { _color_theme_select_form_alter($form, $form_state); diff --git a/modules/comment/comment.install b/modules/comment/comment.install index 7098d0425be..44087ea43a1 100644 --- a/modules/comment/comment.install +++ b/modules/comment/comment.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function comment_uninstall() { // Remove variables. @@ -27,7 +27,7 @@ function comment_uninstall() { } /** - * Implement hook_enable(). + * Implements hook_enable(). */ function comment_enable() { // Insert records into the node_comment_statistics for nodes that are missing. @@ -220,7 +220,7 @@ function comment_update_7011() { */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function comment_schema() { $schema['comment'] = array( diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 2ff6d5e1521..d04755db261 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -71,7 +71,7 @@ define('COMMENT_NODE_CLOSED', 1); define('COMMENT_NODE_OPEN', 2); /** - * Implement hook_help(). + * Implements hook_help(). */ function comment_help($path, $arg) { switch ($path) { @@ -90,7 +90,7 @@ function comment_help($path, $arg) { } /** - * Implement hook_entity_info(). + * Implements hook_entity_info(). */ function comment_entity_info() { $return = array( @@ -121,7 +121,7 @@ function comment_entity_info() { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function comment_theme() { return array( @@ -146,7 +146,7 @@ function comment_theme() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function comment_menu() { $items['admin/content/comment'] = array( @@ -236,14 +236,14 @@ function comment_count_unpublished() { } /** - * Implement hook_node_type_insert(). + * Implements hook_node_type_insert(). */ function comment_node_type_insert($info) { field_attach_create_bundle('comment', 'comment_node_' . $info->type); } /** - * Implement hook_node_type_update(). + * Implements hook_node_type_update(). */ function comment_node_type_update($info) { if (!empty($info->old_type) && $info->type != $info->old_type) { @@ -252,7 +252,7 @@ function comment_node_type_update($info) { } /** - * Implement hook_node_type_delete(). + * Implements hook_node_type_delete(). */ function comment_node_type_delete($info) { field_attach_delete_bundle('comment', 'comment_node_' . $info->type); @@ -271,7 +271,7 @@ function comment_node_type_delete($info) { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function comment_permission() { return array( @@ -291,7 +291,7 @@ function comment_permission() { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function comment_block_info() { $blocks['recent']['info'] = t('Recent comments'); @@ -300,7 +300,7 @@ function comment_block_info() { } /** - * Implement hook_block_configure(). + * Implements hook_block_configure(). */ function comment_block_configure($delta = '') { $form['comment_block_count'] = array( @@ -314,14 +314,14 @@ function comment_block_configure($delta = '') { } /** - * Implement hook_block_save(). + * Implements hook_block_save(). */ function comment_block_save($delta = '', $edit = array()) { variable_set('comment_block_count', (int)$edit['comment_block_count']); } /** - * Implement hook_block_view(). + * Implements hook_block_view(). * * Generates a block with the most recent comments. */ @@ -466,7 +466,7 @@ function theme_comment_block() { } /** - * Implement hook_node_view(). + * Implements hook_node_view(). */ function comment_node_view($node, $build_mode) { $links = array(); @@ -940,7 +940,7 @@ function comment_build_multiple($comments, $node, $build_mode = 'full', $weight } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function comment_form_node_type_form_alter(&$form, $form_state) { if (isset($form['identity']['type'])) { @@ -1011,7 +1011,7 @@ function comment_form_node_type_form_alter(&$form, $form_state) { } /** - * Implement hook_form_alter(). + * Implements hook_form_alter(). */ function comment_form_alter(&$form, $form_state, $form_id) { if (!empty($form['#node_edit_form'])) { @@ -1078,7 +1078,7 @@ function comment_form_alter(&$form, $form_state, $form_id) { } /** - * Implement hook_node_load(). + * Implements hook_node_load(). */ function comment_node_load($nodes, $types) { $comments_enabled = array(); @@ -1111,7 +1111,7 @@ function comment_node_load($nodes, $types) { } /** - * Implement hook_node_prepare(). + * Implements hook_node_prepare(). */ function comment_node_prepare($node) { if (!isset($node->comment)) { @@ -1120,7 +1120,7 @@ function comment_node_prepare($node) { } /** - * Implement hook_node_insert(). + * Implements hook_node_insert(). */ function comment_node_insert($node) { db_insert('node_comment_statistics') @@ -1136,7 +1136,7 @@ function comment_node_insert($node) { } /** - * Implement hook_node_delete(). + * Implements hook_node_delete(). */ function comment_node_delete($node) { $cids = db_query('SELECT cid FROM {comment} WHERE nid = :nid', array(':nid' => $node->nid))->fetchCol(); @@ -1147,7 +1147,7 @@ function comment_node_delete($node) { } /** - * Implement hook_node_update_index(). + * Implements hook_node_update_index(). */ function comment_node_update_index($node) { $text = ''; @@ -1164,7 +1164,7 @@ function comment_node_update_index($node) { } /** - * Implement hook_update_index(). + * Implements hook_update_index(). */ function comment_update_index() { // Store the maximum possible comments per thread (used for ranking by reply count) @@ -1172,7 +1172,7 @@ function comment_update_index() { } /** - * Implement hook_node_search_result(). + * Implements hook_node_search_result(). */ function comment_node_search_result($node) { if ($node->comment != COMMENT_NODE_HIDDEN) { @@ -1183,7 +1183,7 @@ function comment_node_search_result($node) { } /** - * Implement hook_user_cancel(). + * Implements hook_user_cancel(). */ function comment_user_cancel($edit, $account, $method) { switch ($method) { @@ -2270,7 +2270,7 @@ function vancode2int($c = '00') { } /** - * Implement hook_action_info(). + * Implements hook_action_info(). * * @ingroup actions */ @@ -2416,7 +2416,7 @@ function comment_save_action($comment) { } /** - * Implement hook_ranking(). + * Implements hook_ranking(). */ function comment_ranking() { return array( @@ -2436,7 +2436,7 @@ function comment_ranking() { } /** - * Implement hook_menu_alter(). + * Implements hook_menu_alter(). */ function comment_menu_alter(&$items) { // Add comments to the description for admin/content. @@ -2444,7 +2444,7 @@ function comment_menu_alter(&$items) { } /** - * Implement hook_filter_format_delete(). + * Implements hook_filter_format_delete(). */ function comment_filter_format_delete($format, $fallback) { db_update('comment') diff --git a/modules/comment/comment.tokens.inc b/modules/comment/comment.tokens.inc index 044b02bee43..e075c1296c8 100644 --- a/modules/comment/comment.tokens.inc +++ b/modules/comment/comment.tokens.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_token_info(). + * Implements hook_token_info(). */ function comment_token_info() { $type = array( @@ -108,7 +108,7 @@ function comment_token_info() { } /** - * Implement hook_tokens(). + * Implements hook_tokens(). */ function comment_tokens($type, $tokens, array $data = array(), array $options = array()) { $url_options = array('absolute' => TRUE); diff --git a/modules/contact/contact.install b/modules/contact/contact.install index 42f15272d28..1246fd677b6 100644 --- a/modules/contact/contact.install +++ b/modules/contact/contact.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function contact_schema() { $schema['contact'] = array( @@ -67,7 +67,7 @@ function contact_schema() { } /** - * Implement hook_install(). + * Implements hook_install(). */ function contact_install() { // Insert a default contact category. @@ -82,7 +82,7 @@ function contact_install() { } /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function contact_uninstall() { variable_del('contact_default_status'); diff --git a/modules/contact/contact.module b/modules/contact/contact.module index 9f0e3ca16a2..76af943ac22 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function contact_help($path, $arg) { switch ($path) { @@ -38,7 +38,7 @@ function contact_help($path, $arg) { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function contact_permission() { return array( @@ -55,7 +55,7 @@ function contact_permission() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function contact_menu() { $items['admin/structure/contact'] = array( @@ -160,14 +160,14 @@ function contact_load($cid) { } /** - * Implement hook_user_insert(). + * Implements hook_user_insert(). */ function contact_user_insert(&$edit, $account, $category) { $edit['contact'] = variable_get('contact_default_status', 1); } /** - * Implement hook_mail(). + * Implements hook_mail(). */ function contact_mail($key, &$message, $params) { $language = $message['language']; @@ -210,7 +210,7 @@ function contact_mail($key, &$message, $params) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). * * Add the enable personal contact form to an individual user's account page. */ diff --git a/modules/dashboard/dashboard.module b/modules/dashboard/dashboard.module index 933ecb8f77d..62325edf186 100644 --- a/modules/dashboard/dashboard.module +++ b/modules/dashboard/dashboard.module @@ -22,7 +22,7 @@ function dashboard_help($path, $arg) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function dashboard_menu() { $items['admin/dashboard'] = array( @@ -60,7 +60,7 @@ function dashboard_menu() { } /** - * Implement hook_block_info_alter(). + * Implements hook_block_info_alter(). * * Skip rendering dashboard blocks when not on the dashboard page itself. This * prevents expensive dashboard blocks from causing performance issues on pages @@ -77,7 +77,7 @@ function dashboard_block_info_alter(&$blocks) { } /** - * Implement hook_page_build(). + * Implements hook_page_build(). * * Display dashboard blocks in the main content region. */ @@ -141,7 +141,7 @@ function dashboard_page_build(&$page) { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function dashboard_permission() { return array( @@ -153,7 +153,7 @@ function dashboard_permission() { } /** - * Implement hook_system_info_alter(). + * Implements hook_system_info_alter(). * * Add regions to each theme to store the dashboard blocks. */ @@ -167,7 +167,7 @@ function dashboard_system_info_alter(&$info, $file, $type) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function dashboard_theme() { return array( @@ -257,7 +257,7 @@ function dashboard_regions() { } /** - * Implement hook_dashboard_regions(). + * Implements hook_dashboard_regions(). */ function dashboard_dashboard_regions() { return array( diff --git a/modules/dblog/dblog.install b/modules/dblog/dblog.install index 2a0456927c6..5b5e6d092be 100644 --- a/modules/dblog/dblog.install +++ b/modules/dblog/dblog.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function dblog_schema() { $schema['watchdog'] = array( diff --git a/modules/dblog/dblog.module b/modules/dblog/dblog.module index bdc3db114ff..cda8211ae57 100644 --- a/modules/dblog/dblog.module +++ b/modules/dblog/dblog.module @@ -13,7 +13,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function dblog_help($path, $arg) { switch ($path) { @@ -28,7 +28,7 @@ function dblog_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function dblog_theme() { return array( @@ -39,7 +39,7 @@ function dblog_theme() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function dblog_menu() { $items['admin/reports/dblog'] = array( @@ -87,7 +87,7 @@ function dblog_init() { /** - * Implement hook_cron(). + * Implements hook_cron(). * * Remove expired log messages and flood control events. */ @@ -102,7 +102,7 @@ function dblog_cron() { } /** - * Implement hook_user_cancel(). + * Implements hook_user_cancel(). */ function dblog_user_cancel($edit, $account, $method) { switch ($method) { @@ -133,7 +133,7 @@ function _dblog_get_message_types() { } /** - * Implement hook_watchdog(). + * Implements hook_watchdog(). * * Note some values may be truncated for database column size restrictions. */ @@ -155,7 +155,7 @@ function dblog_watchdog(array $log_entry) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function dblog_form_system_logging_settings_alter(&$form, $form_state) { $form['dblog_row_limit'] = array( diff --git a/modules/field/field.attach.inc b/modules/field/field.attach.inc index b5c0b0e9010..01b46b13eb5 100644 --- a/modules/field/field.attach.inc +++ b/modules/field/field.attach.inc @@ -1264,7 +1264,7 @@ function field_attach_extra_weight($bundle, $pseudo_field) { } /** - * Implement hook_node_prepare_translation. + * Implements hook_node_prepare_translation(). * * TODO D7: We do not yet know if this really belongs in Field API. */ diff --git a/modules/field/field.install b/modules/field/field.install index 33d29c065a3..75724c4294a 100644 --- a/modules/field/field.install +++ b/modules/field/field.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema. + * Implements hook_schema(). */ function field_schema() { // Static (meta) tables. diff --git a/modules/field/field.module b/modules/field/field.module index a8769bde08f..2bff9cea1c7 100644 --- a/modules/field/field.module +++ b/modules/field/field.module @@ -129,14 +129,14 @@ class FieldException extends Exception {} class FieldUpdateForbiddenException extends FieldException {} /** - * Implement hook_flush_caches. + * Implements hook_flush_caches(). */ function field_flush_caches() { return array('cache_field'); } /** - * Implement hook_help(). + * Implements hook_help(). */ function field_help($path, $arg) { switch ($path) { @@ -167,7 +167,7 @@ function field_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function field_theme() { $path = drupal_get_path('module', 'field') . '/theme'; @@ -194,7 +194,7 @@ function field_theme() { } /** - * Implement hook_cron(). + * Implements hook_cron(). * * Purges some deleted Field API data, if any exists. */ @@ -204,14 +204,14 @@ function field_cron() { } /** - * Implement hook_modules_installed(). + * Implements hook_modules_installed(). */ function field_modules_installed($modules) { field_cache_clear(); } /** - * Implement hook_modules_uninstalled(). + * Implements hook_modules_uninstalled(). */ function field_modules_uninstalled($modules) { module_load_include('inc', 'field', 'field.crud'); @@ -222,7 +222,7 @@ function field_modules_uninstalled($modules) { } /** - * Implement hook_modules_enabled(). + * Implements hook_modules_enabled(). */ function field_modules_enabled($modules) { foreach ($modules as $module) { @@ -232,7 +232,7 @@ function field_modules_enabled($modules) { } /** - * Implement hook_modules_disabled(). + * Implements hook_modules_disabled(). */ function field_modules_disabled($modules) { foreach ($modules as $module) { diff --git a/modules/field/field.multilingual.inc b/modules/field/field.multilingual.inc index d492b358dcf..bbe3a75d10f 100644 --- a/modules/field/field.multilingual.inc +++ b/modules/field/field.multilingual.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_multilingual_settings_changed(). + * Implements hook_multilingual_settings_changed(). */ function field_multilingual_settings_changed() { field_info_cache_clear(); diff --git a/modules/field/modules/field_sql_storage/field_sql_storage.install b/modules/field/modules/field_sql_storage/field_sql_storage.install index 7ab6a8cf9ae..2193c6d570b 100644 --- a/modules/field/modules/field_sql_storage/field_sql_storage.install +++ b/modules/field/modules/field_sql_storage/field_sql_storage.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function field_sql_storage_schema() { $schema = array(); diff --git a/modules/field/modules/field_sql_storage/field_sql_storage.module b/modules/field/modules/field_sql_storage/field_sql_storage.module index 23b138f38e9..20ccc690b75 100644 --- a/modules/field/modules/field_sql_storage/field_sql_storage.module +++ b/modules/field/modules/field_sql_storage/field_sql_storage.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function field_sql_storage_help($path, $arg) { switch ($path) { @@ -18,7 +18,7 @@ function field_sql_storage_help($path, $arg) { } /** - * Implement hook_field_storage_info(). + * Implements hook_field_storage_info(). */ function field_sql_storage_field_storage_info() { return array( @@ -206,7 +206,7 @@ function _field_sql_storage_schema($field) { } /** - * Implement hook_field_storage_create_field(). + * Implements hook_field_storage_create_field(). */ function field_sql_storage_field_storage_create_field($field) { $schema = _field_sql_storage_schema($field); @@ -217,7 +217,7 @@ function field_sql_storage_field_storage_create_field($field) { } /** - * Implement hook_field_update_field_forbid(). + * Implements hook_field_update_field_forbid(). * * Forbid any field update that changes column definitions if there is * any data. @@ -229,7 +229,7 @@ function field_sql_storage_field_update_forbid($field, $prior_field, $has_data) } /** - * Implement hook_field_storage_update_field(). + * Implements hook_field_storage_update_field(). */ function field_sql_storage_field_storage_update_field($field, $prior_field, $has_data) { if (! $has_data) { @@ -274,7 +274,7 @@ function field_sql_storage_field_storage_update_field($field, $prior_field, $has } /** - * Implement hook_field_storage_delete_field(). + * Implements hook_field_storage_delete_field(). */ function field_sql_storage_field_storage_delete_field($field) { // Mark all data associated with the field for deletion. @@ -295,7 +295,7 @@ function field_sql_storage_field_storage_delete_field($field) { } /** - * Implement hook_field_storage_load(). + * Implements hook_field_storage_load(). */ function field_sql_storage_field_storage_load($obj_type, $objects, $age, $fields, $options) { $etid = _field_sql_storage_etid($obj_type); @@ -343,7 +343,7 @@ function field_sql_storage_field_storage_load($obj_type, $objects, $age, $fields } /** - * Implement hook_field_storage_write(). + * Implements hook_field_storage_write(). */ function field_sql_storage_field_storage_write($obj_type, $object, $op, $fields) { list($id, $vid, $bundle) = entity_extract_ids($obj_type, $object); @@ -430,7 +430,7 @@ function field_sql_storage_field_storage_write($obj_type, $object, $op, $fields) } /** - * Implement hook_field_storage_delete(). + * Implements hook_field_storage_delete(). * * This function deletes data for all fields for an object from the database. */ @@ -447,7 +447,7 @@ function field_sql_storage_field_storage_delete($obj_type, $object, $fields) { } /** - * Implement hook_field_storage_purge(). + * Implements hook_field_storage_purge(). * * This function deletes data from the database for a single field on * an object. @@ -469,7 +469,7 @@ function field_sql_storage_field_storage_purge($obj_type, $object, $field, $inst } /** - * Implement hook_field_storage_query(). + * Implements hook_field_storage_query(). */ function field_sql_storage_field_storage_query($field_id, $conditions, $options) { $load_current = $options['age'] == FIELD_LOAD_CURRENT; @@ -591,7 +591,7 @@ function field_sql_storage_field_storage_query($field_id, $conditions, $options) } /** - * Implement hook_field_storage_delete_revision(). + * Implements hook_field_storage_delete_revision(). * * This function actually deletes the data from the database. */ @@ -613,7 +613,7 @@ function field_sql_storage_field_storage_delete_revision($obj_type, $object, $fi } /** - * Implement hook_field_storage_delete_instance(). + * Implements hook_field_storage_delete_instance(). * * This function simply marks for deletion all data associated with the field. */ @@ -635,7 +635,7 @@ function field_sql_storage_field_storage_delete_instance($instance) { } /** - * Implement hook_field_attach_rename_bundle(). + * Implements hook_field_attach_rename_bundle(). */ function field_sql_storage_field_attach_rename_bundle($obj_type, $bundle_old, $bundle_new) { $etid = _field_sql_storage_etid($obj_type); @@ -661,7 +661,7 @@ function field_sql_storage_field_attach_rename_bundle($obj_type, $bundle_old, $b } /** - * Implement hook_field_storage_purge_field(). + * Implements hook_field_storage_purge_field(). * * All field data items and instances have already been purged, so all * that is left is to delete the table. @@ -674,7 +674,7 @@ function field_sql_storage_field_storage_purge_field($field) { } /** - * Implement hook_field_storage_details(). + * Implements hook_field_storage_details(). */ function field_sql_storage_field_storage_details($field, $instance) { $details = array(); diff --git a/modules/field/modules/list/list.module b/modules/field/modules/list/list.module index 64d8441ca0a..ab2966814ae 100644 --- a/modules/field/modules/list/list.module +++ b/modules/field/modules/list/list.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_field_info(). + * Implements hook_field_info(). */ function list_field_info() { return array( @@ -43,7 +43,7 @@ function list_field_info() { } /** - * Implement hook_field_schema(). + * Implements hook_field_schema(). */ function list_field_schema($field) { switch ($field['type']) { @@ -84,7 +84,7 @@ function list_field_schema($field) { } /** - * Implement hook_field_settings_form(). + * Implements hook_field_settings_form(). * * @todo: If $has_data, add a form validate function to verify that the * new allowed values do not exclude any keys for which data already @@ -131,7 +131,7 @@ function list_field_settings_form($field, $instance, $has_data) { } /** - * Implement hook_field_create_field(). + * Implements hook_field_create_field(). */ function list_field_create_field($field) { if (array_key_exists($field['type'], list_field_info())) { @@ -142,7 +142,7 @@ function list_field_create_field($field) { } /** - * Implement hook_field_update_field(). + * Implements hook_field_update_field(). */ function list_field_update_field($field, $prior_field, $has_data) { if (array_key_exists($field['type'], list_field_info())) { @@ -252,7 +252,7 @@ function list_allowed_values_validate($element, &$form_state) { } /** - * Implement hook_field_validate(). + * Implements hook_field_validate(). * * Possible error codes: * - 'list_illegal_value': The value is not part of the list of allowed values. @@ -272,7 +272,7 @@ function list_field_validate($obj_type, $object, $field, $instance, $langcode, $ } /** - * Implement hook_field_is_empty(). + * Implements hook_field_is_empty(). */ function list_field_is_empty($item, $field) { if (empty($item['value']) && (string)$item['value'] !== '0') { @@ -282,7 +282,7 @@ function list_field_is_empty($item, $field) { } /** - * Implement hook_field_formatter_info(). + * Implements hook_field_formatter_info(). */ function list_field_formatter_info() { return array( diff --git a/modules/field/modules/number/number.module b/modules/field/modules/number/number.module index 6b00fadfac4..e03b26503c1 100644 --- a/modules/field/modules/number/number.module +++ b/modules/field/modules/number/number.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_theme_alter(). + * Implements hook_theme_alter(). */ function number_theme_registry_alter(&$theme_registry) { // The number_integer and number_decimal formatters use the same function. @@ -16,7 +16,7 @@ function number_theme_registry_alter(&$theme_registry) { } /** - * Implement hook_field_info(). + * Implements hook_field_info(). */ function number_field_info() { return array( @@ -47,7 +47,7 @@ function number_field_info() { } /** - * Implement hook_field_schema(). + * Implements hook_field_schema(). */ function number_field_schema($field) { switch ($field['type']) { @@ -86,7 +86,7 @@ function number_field_schema($field) { } /** - * Implement hook_field_settings_form(). + * Implements hook_field_settings_form(). */ function number_field_settings_form($field, $instance, $has_data) { $settings = $field['settings']; @@ -128,7 +128,7 @@ function number_field_settings_form($field, $instance, $has_data) { } /** - * Implement hook_field_instance_settings_form(). + * Implements hook_field_instance_settings_form(). */ function number_field_instance_settings_form($field, $instance) { $settings = $instance['settings']; @@ -166,7 +166,7 @@ function number_field_instance_settings_form($field, $instance) { } /** - * Implement hook_field_validate(). + * Implements hook_field_validate(). * * Possible error codes: * - 'number_min': The value is smaller than the allowed minimum value. @@ -207,7 +207,7 @@ function number_field_presave($obj_type, $object, $field, $instance, $langcode, } /** - * Implement hook_content_is_empty(). + * Implements hook_content_is_empty(). */ function number_field_is_empty($item, $field) { if (empty($item['value']) && (string)$item['value'] !== '0') { @@ -217,7 +217,7 @@ function number_field_is_empty($item, $field) { } /** - * Implement hook_field_formatter_info(). + * Implements hook_field_formatter_info(). */ function number_field_formatter_info() { return array( @@ -285,7 +285,7 @@ function theme_field_formatter_number($variables) { } /** - * Implement hook_field_widget_info(). + * Implements hook_field_widget_info(). */ function number_field_widget_info() { return array( @@ -297,7 +297,7 @@ function number_field_widget_info() { } /** - * Implement hook_field_widget(). + * Implements hook_field_widget(). */ function number_field_widget(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) { $value = isset($items[$delta]['value']) ? $items[$delta]['value'] : ''; @@ -370,7 +370,7 @@ function number_field_widget_validate($element, &$form_state) { } /** - * Implement hook_field_widget_error(). + * Implements hook_field_widget_error(). */ function number_field_widget_error($element, $error) { form_error($element['value'], $error['message']); diff --git a/modules/field/modules/options/options.module b/modules/field/modules/options/options.module index a05ed375b37..74573b4fdd1 100644 --- a/modules/field/modules/options/options.module +++ b/modules/field/modules/options/options.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_theme(). + * Implements hook_theme(). */ function options_theme() { return array( @@ -18,7 +18,7 @@ function options_theme() { } /** - * Implement hook_field_widget_info(). + * Implements hook_field_widget_info(). */ function options_field_widget_info() { return array( @@ -47,7 +47,7 @@ function options_field_widget_info() { } /** - * Implement hook_field_widget(). + * Implements hook_field_widget(). */ function options_field_widget(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) { // Abstract over the actual field columns, to allow different field types to @@ -250,7 +250,7 @@ function options_array_transpose($array) { } /** - * Implement hook_field_widget_error(). + * Implements hook_field_widget_error(). */ function options_field_widget_error($element, $error) { form_error($element, $error['message']); diff --git a/modules/field/modules/text/text.module b/modules/field/modules/text/text.module index 15c846874c2..abae03be282 100644 --- a/modules/field/modules/text/text.module +++ b/modules/field/modules/text/text.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_field_info(). + * Implements hook_field_info(). * * Field settings: * - max_length: the maximum length for a varchar field. @@ -47,7 +47,7 @@ function text_field_info() { } /** - * Implement hook_field_schema(). + * Implements hook_field_schema(). */ function text_field_schema($field) { switch ($field['type']) { @@ -100,7 +100,7 @@ function text_field_schema($field) { } /** - * Implement hook_field_settings_form(). + * Implements hook_field_settings_form(). */ function text_field_settings_form($field, $instance, $has_data) { $settings = $field['settings']; @@ -121,7 +121,7 @@ function text_field_settings_form($field, $instance, $has_data) { } /** - * Implement hook_field_instance_settings_form(). + * Implements hook_field_instance_settings_form(). */ function text_field_instance_settings_form($field, $instance) { $settings = $instance['settings']; @@ -148,7 +148,7 @@ function text_field_instance_settings_form($field, $instance) { } /** - * Implement hook_field_validate(). + * Implements hook_field_validate(). * * Possible error codes: * - 'text_value_max_length': The value exceeds the maximum length. @@ -181,7 +181,7 @@ function text_field_validate($obj_type, $object, $field, $instance, $langcode, $ } /** - * Implement hook_field_load(). + * Implements hook_field_load(). * * Where possible, generate the sanitized version of each field early so that * it is cached in the field cache. This avoids looking up from the filter cache @@ -213,7 +213,7 @@ function text_field_load($obj_type, $objects, $field, $instances, $langcode, &$i } /** - * Implement hook_field_sanitize(). + * Implements hook_field_sanitize(). * * @see text_field_load() */ @@ -241,7 +241,7 @@ function text_field_sanitize($obj_type, $object, $field, $instance, $langcode, & } /** - * Implement hook_field_is_empty(). + * Implements hook_field_is_empty(). */ function text_field_is_empty($item, $field) { if (empty($item['value']) && (string)$item['value'] !== '0') { @@ -251,7 +251,7 @@ function text_field_is_empty($item, $field) { } /** - * Implement hook_field_formatter_info(). + * Implements hook_field_formatter_info(). */ function text_field_formatter_info() { return array( @@ -457,7 +457,7 @@ function text_summary($text, $format = NULL, $size = NULL) { } /** - * Implement hook_field_widget_info(). + * Implements hook_field_widget_info(). */ function text_field_widget_info() { return array( @@ -480,7 +480,7 @@ function text_field_widget_info() { } /** - * Implement hook_field_widget_settings_form(). + * Implements hook_field_widget_settings_form(). */ function text_field_widget_settings_form($field, $instance) { $widget = $instance['widget']; @@ -509,7 +509,7 @@ function text_field_widget_settings_form($field, $instance) { } /** - * Implement hook_field_widget(). + * Implements hook_field_widget(). */ function text_field_widget(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $base) { $element = $base; @@ -565,7 +565,7 @@ function text_field_widget(&$form, &$form_state, $field, $instance, $langcode, $ } /** - * Implement hook_field_widget_error(). + * Implements hook_field_widget_error(). */ function text_field_widget_error($element, $error) { switch ($error['error']) { diff --git a/modules/field/tests/field_test.field.inc b/modules/field/tests/field_test.field.inc index 9696df36097..0bdc93ea651 100644 --- a/modules/field/tests/field_test.field.inc +++ b/modules/field/tests/field_test.field.inc @@ -236,7 +236,7 @@ function field_test_field_formatter_info() { } /** - * Implement hook_field_formatter_prepare_view(). + * Implements hook_field_formatter_prepare_view(). */ function field_test_field_formatter_prepare_view($obj_type, $objects, $field, $instances, $langcode, &$items, $build_mode) { foreach ($items as $id => $item) { diff --git a/modules/field/tests/field_test.install b/modules/field/tests/field_test.install index 2bb1701bf36..72a2deee62b 100644 --- a/modules/field/tests/field_test.install +++ b/modules/field/tests/field_test.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_install(). + * Implements hook_install(). */ function field_test_install() { // hook_entity_info_alter() needs to be executed as last. @@ -18,7 +18,7 @@ function field_test_install() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function field_test_schema() { $schema['test_entity'] = array( diff --git a/modules/field/tests/field_test.module b/modules/field/tests/field_test.module index b8b07b96c9e..f7c5396040a 100644 --- a/modules/field/tests/field_test.module +++ b/modules/field/tests/field_test.module @@ -87,7 +87,7 @@ function field_test_field_test_op_multiple($obj_type, $objects, $field, $instanc } /** - * Implement hook_field_languages(). + * Implements hook_field_languages(). */ function field_test_field_languages($obj_type, $field, &$languages) { if ($field['settings']['test_hook_in']) { diff --git a/modules/field_ui/field_ui.module b/modules/field_ui/field_ui.module index 31a99ba7d35..f89c59af998 100644 --- a/modules/field_ui/field_ui.module +++ b/modules/field_ui/field_ui.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function field_ui_help($path, $arg) { switch ($path) { @@ -29,7 +29,7 @@ function field_ui_help($path, $arg) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function field_ui_menu() { $items['admin/reports/fields'] = array( @@ -152,7 +152,7 @@ function field_ui_menu_label($instance) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function field_ui_theme() { return array( @@ -203,7 +203,7 @@ function field_ui_build_modes_tabs($obj_type, $tab_selector = NULL) { } /** - * Implement hook_field_ui_build_modes_tabs() on behalf of other core modules. + * Implements hook_field_ui_build_modes_tabs() on behalf of other core modules. * * @return * An array describing the build modes defined by the module, grouped by tabs. @@ -245,7 +245,7 @@ function field_ui_field_ui_build_modes_tabs() { } /** - * Implement hook_field_attach_create_bundle(). + * Implements hook_field_attach_create_bundle(). */ function field_ui_field_attach_create_bundle($bundle) { // When a new bundle is created, the menu needs to be rebuilt to add our @@ -254,7 +254,7 @@ function field_ui_field_attach_create_bundle($bundle) { } /** - * Implement hook_field_attach_rename_bundle(). + * Implements hook_field_attach_rename_bundle(). */ function field_ui_field_attach_rename_bundle($bundle_old, $bundle_new) { if ($bundle_old !== $bundle_new && $extra = variable_get("field_extra_weights_$bundle_old", array())) { @@ -264,7 +264,7 @@ function field_ui_field_attach_rename_bundle($bundle_old, $bundle_new) { } /** - * Implement hook_field_attach_delete_bundle(). + * Implements hook_field_attach_delete_bundle(). */ function field_ui_field_attach_delete_bundle($bundle) { variable_del('field_extra_weights_' . $bundle); diff --git a/modules/file/file.field.inc b/modules/file/file.field.inc index c08d1664f81..fb0d3492511 100644 --- a/modules/file/file.field.inc +++ b/modules/file/file.field.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_field_info(). + * Implements hook_field_info(). */ function file_field_info() { return array( @@ -32,7 +32,7 @@ function file_field_info() { } /** - * Implement hook_field_schema(). + * Implements hook_field_schema(). */ function file_field_schema($field) { return array( @@ -64,7 +64,7 @@ function file_field_schema($field) { } /** - * Implement hook_field_settings_form(). + * Implements hook_field_settings_form(). */ function file_field_settings_form($field, $instance, $has_data) { $defaults = field_info_field_settings($field['type']); @@ -104,7 +104,7 @@ function file_field_settings_form($field, $instance, $has_data) { } /** - * Implement hook_field_instance_settings_form(). + * Implements hook_field_instance_settings_form(). */ function file_field_instance_settings_form($field, $instance) { $settings = $instance['settings']; @@ -204,7 +204,7 @@ function _file_generic_settings_file_directory_validate($element, &$form_state) } /** - * Implement hook_field_load(). + * Implements hook_field_load(). */ function file_field_load($obj_type, $objects, $field, $instances, $langcode, &$items, $age) { foreach ($objects as $obj_id => $object) { @@ -228,7 +228,7 @@ function file_field_load($obj_type, $objects, $field, $instances, $langcode, &$i } /** - * Implement hook_field_sanitize(). + * Implements hook_field_sanitize(). */ function file_field_sanitize($obj_type, $object, $field, $instance, $langcode, &$items) { // Remove files from being displayed if they're not displayed. @@ -243,14 +243,14 @@ function file_field_sanitize($obj_type, $object, $field, $instance, $langcode, & } /** - * Implement hook_field_insert(). + * Implements hook_field_insert(). */ function file_field_insert($obj_type, $object, $field, $instance, $langcode, &$items) { file_field_update($obj_type, $object, $field, $instance, $langcode, $items); } /** - * Implement hook_field_update(). + * Implements hook_field_update(). */ function file_field_update($obj_type, $object, $field, $instance, $langcode, &$items) { // Check for files that have been removed from the object. @@ -284,7 +284,7 @@ function file_field_update($obj_type, $object, $field, $instance, $langcode, &$i } /** - * Implement hook_field_delete(). + * Implements hook_field_delete(). */ function file_field_delete($obj_type, $object, $field, $instance, $langcode, &$items) { list($id, $vid, $bundle) = entity_extract_ids($obj_type, $object); @@ -300,7 +300,7 @@ function file_field_delete($obj_type, $object, $field, $instance, $langcode, &$i } /** - * Implement hook_field_delete_revision(). + * Implements hook_field_delete_revision(). */ function file_field_delete_revision($obj_type, $object, $field, $instance, $langcode, &$items) { foreach ($items as $delta => $item) { @@ -338,7 +338,7 @@ function file_field_delete_file($item, $field) { } /** - * Implement hook_field_is_empty(). + * Implements hook_field_is_empty(). */ function file_field_is_empty($item, $field) { return empty($item['fid']); @@ -362,7 +362,7 @@ function file_field_displayed($item, $field) { } /** - * Implement hook_field_formatter_info(). + * Implements hook_field_formatter_info(). */ function file_field_formatter_info() { return array( @@ -385,7 +385,7 @@ function file_field_formatter_info() { } /** - * Implement hook_field_widget_info(). + * Implements hook_field_widget_info(). */ function file_field_widget_info() { return array( @@ -404,7 +404,7 @@ function file_field_widget_info() { } /** - * Implement hook_field_widget_settings_form(). + * Implements hook_field_widget_settings_form(). */ function file_field_widget_settings_form($field, $instance) { $widget = $instance['widget']; @@ -427,7 +427,7 @@ function file_field_widget_settings_form($field, $instance) { } /** - * Implementation of hook_field_widget(). + * Implements hook_field_widget(). */ function file_field_widget(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) { $form['#attributes'] = array('enctype' => 'multipart/form-data'); diff --git a/modules/file/file.install b/modules/file/file.install index 4ee5ef0c56e..c92068e98e0 100644 --- a/modules/file/file.install +++ b/modules/file/file.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_requirements(). + * Implements hook_requirements(). * * Display information about getting upload progress bars working. */ diff --git a/modules/file/file.module b/modules/file/file.module index 1d8d0b57df2..0768b1916a9 100644 --- a/modules/file/file.module +++ b/modules/file/file.module @@ -10,7 +10,7 @@ module_load_include('inc', 'file', 'file.field'); /** - * Implement hook_menu(). + * Implements hook_menu(). */ function file_menu() { $items = array(); @@ -32,7 +32,7 @@ function file_menu() { } /** - * Implement hook_element_info(). + * Implements hook_element_info(). * * The managed file element may be used independently anywhere in Drupal. */ @@ -59,7 +59,7 @@ function file_element_info() { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function file_theme() { return array( @@ -88,7 +88,7 @@ function file_theme() { } /** - * Implement hook_file_download(). + * Implements hook_file_download(). * * This function takes an extra parameter $field_type so that it may * be re-used by other File-like modules, such as Image. @@ -295,7 +295,7 @@ function file_progress_implementation() { } /** - * Implement hook_file_references(). + * Implements hook_file_references(). */ function file_file_references($file) { $count = file_get_file_reference_count($file); @@ -303,7 +303,7 @@ function file_file_references($file) { } /** - * Implement hook_file_delete(). + * Implements hook_file_delete(). */ function file_file_delete($file) { // TODO: Remove references to a file that is in-use. diff --git a/modules/file/tests/file_module_test.module b/modules/file/tests/file_module_test.module index 9fdf6ae1636..f8362dc5441 100644 --- a/modules/file/tests/file_module_test.module +++ b/modules/file/tests/file_module_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function file_module_test_menu() { $items = array(); diff --git a/modules/filter/filter.install b/modules/filter/filter.install index d07ee308278..6371be7e245 100644 --- a/modules/filter/filter.install +++ b/modules/filter/filter.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function filter_schema() { $schema['filter'] = array( diff --git a/modules/filter/filter.module b/modules/filter/filter.module index d696f8cfc6e..c51bf8ac730 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function filter_help($path, $arg) { switch ($path) { @@ -33,7 +33,7 @@ function filter_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function filter_theme() { return array( @@ -59,7 +59,7 @@ function filter_theme() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function filter_menu() { $items['filter/tips'] = array( @@ -293,7 +293,7 @@ function filter_admin_format_title($format) { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function filter_permission() { $perms['administer filters'] = array( @@ -335,7 +335,7 @@ function filter_permission_name($format) { } /** - * Implement hook_cron(). + * Implements hook_cron(). * * Expire outdated filter cache entries */ @@ -879,7 +879,7 @@ function theme_filter_guidelines($variables) { */ /** - * Implement hook_filter_info(). + * Implements hook_filter_info(). */ function filter_filter_info() { $filters['filter_html'] = array( diff --git a/modules/forum/forum.install b/modules/forum/forum.install index a11795ea130..ae0ee3e50dd 100644 --- a/modules/forum/forum.install +++ b/modules/forum/forum.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_install(). + * Implements hook_install(). */ function forum_install() { // Set the weight of the forum.module to 1 so it is loaded after the taxonomy.module. @@ -57,7 +57,7 @@ function forum_enable() { } /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function forum_uninstall() { // Load the dependent Taxonomy module, in case it has been disabled. @@ -78,7 +78,7 @@ function forum_uninstall() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function forum_schema() { $schema['forum'] = array( diff --git a/modules/forum/forum.module b/modules/forum/forum.module index fb957d32eb9..aeeb0171322 100644 --- a/modules/forum/forum.module +++ b/modules/forum/forum.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function forum_help($path, $arg) { switch ($path) { @@ -36,7 +36,7 @@ function forum_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function forum_theme() { return array( @@ -68,7 +68,7 @@ function forum_theme() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function forum_menu() { $items['forum'] = array( @@ -195,7 +195,7 @@ function forum_menu_local_tasks_alter(&$data, $router_item, $root_path) { } /** - * Implement hook_init(). + * Implements hook_init(). */ function forum_init() { drupal_add_css(drupal_get_path('module', 'forum') . '/forum.css'); @@ -218,7 +218,7 @@ function _forum_node_check_node_type($node) { } /** - * Implement hook_node_view(). + * Implements hook_node_view(). */ function forum_node_view($node, $build_mode) { $vid = variable_get('forum_nav_vocabulary', 0); @@ -241,7 +241,7 @@ function forum_node_view($node, $build_mode) { } /** - * Implement hook_node_prepare(). + * Implements hook_node_prepare(). */ function forum_node_prepare($node) { if (_forum_node_check_node_type($node)) { @@ -253,7 +253,7 @@ function forum_node_prepare($node) { } /** - * Implement hook_node_validate(). + * Implements hook_node_validate(). * * Check in particular that only a "leaf" term in the associated taxonomy. */ @@ -279,7 +279,7 @@ function forum_node_validate($node, $form) { } /** - * Implement hook_node_presave(). + * Implements hook_node_presave(). * * Assign forum taxonomy when adding a topic from within a forum. */ @@ -300,7 +300,7 @@ function forum_node_presave($node) { } /** - * Implement hook_node_update(). + * Implements hook_node_update(). */ function forum_node_update($node) { if (_forum_node_check_node_type($node)) { @@ -348,7 +348,7 @@ function forum_node_update($node) { } /** - * Implement hook_node_insert(). + * Implements hook_node_insert(). */ function forum_node_insert($node) { if (_forum_node_check_node_type($node)) { @@ -365,7 +365,7 @@ function forum_node_insert($node) { } /** - * Implement hook_node_delete(). + * Implements hook_node_delete(). */ function forum_node_delete($node) { if (_forum_node_check_node_type($node)) { @@ -379,7 +379,7 @@ function forum_node_delete($node) { } /** - * Implement hook_node_load(). + * Implements hook_node_load(). */ function forum_node_load($nodes) { $node_vids = array(); @@ -401,7 +401,7 @@ function forum_node_load($nodes) { } /** - * Implement hook_node_info(). + * Implements hook_node_info(). */ function forum_node_info() { return array( @@ -415,7 +415,7 @@ function forum_node_info() { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function forum_permission() { $perms = array( @@ -427,7 +427,7 @@ function forum_permission() { } /** - * Implement hook_taxonomy(). + * Implements hook_taxonomy(). */ function forum_taxonomy_term_delete($tid) { // For containers, remove the tid from the forum_containers variable. @@ -440,7 +440,7 @@ function forum_taxonomy_term_delete($tid) { } /** - * Implement hook_comment_publish(). + * Implements hook_comment_publish(). * * This actually handles the insert and update of published nodes since * comment_save() calls hook_comment_publish() for all published comments. @@ -450,7 +450,7 @@ function forum_comment_publish($comment) { } /** - * Implement forum_comment_update(). + * Implements hook_comment_update(). * * Comment module doesn't call hook_comment_unpublish() when saving individual * comments so we need to check for those here. @@ -464,21 +464,21 @@ function forum_comment_update($comment) { } /** - * Implements forum_comment_unpublish(). + * Implements hook_comment_unpublish(). */ function forum_comment_unpublish($comment) { _forum_update_forum_index($comment->nid); } /** - * Implement forum_comment_delete(). + * Implements hook_comment_delete(). */ function forum_comment_delete($comment) { _forum_update_forum_index($comment->nid); } /** - * Implement hook_field_storage_pre_insert(). + * Implements hook_field_storage_pre_insert(). */ function forum_field_storage_pre_insert($obj_type, $object, &$skip_fields) { if ($obj_type == 'node' && $object->status && _forum_node_check_node_type($object)) { @@ -501,7 +501,7 @@ function forum_field_storage_pre_insert($obj_type, $object, &$skip_fields) { } /** - * Implement hook_field_storage_pre_update(). + * Implements hook_field_storage_pre_update(). */ function forum_field_storage_pre_update($obj_type, $object, &$skip_fields) { $first_call = &drupal_static(__FUNCTION__, array()); @@ -539,7 +539,7 @@ function forum_field_storage_pre_update($obj_type, $object, &$skip_fields) { } /** - * Implement hook_form_alter(). + * Implements hook_form_alter(). */ function forum_form_alter(&$form, $form_state, $form_id) { $vid = variable_get('forum_nav_vocabulary', 0); @@ -567,7 +567,7 @@ function forum_form_alter(&$form, $form_state, $form_id) { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function forum_block_info() { $blocks['active'] = array( @@ -582,7 +582,7 @@ function forum_block_info() { } /** - * Implement hook_block_configure(). + * Implements hook_block_configure(). */ function forum_block_configure($delta = '') { $form['forum_block_num_' . $delta] = array('#type' => 'select', '#title' => t('Number of topics'), '#default_value' => variable_get('forum_block_num_' . $delta, '5'), '#options' => drupal_map_assoc(array(2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20))); @@ -590,14 +590,14 @@ function forum_block_configure($delta = '') { } /** - * Implement hook_block_save(). + * Implements hook_block_save(). */ function forum_block_save($delta = '', $edit = array()) { variable_set('forum_block_num_' . $delta, $edit['forum_block_num_' . $delta]); } /** - * Implement hook_block_view(). + * Implements hook_block_view(). * * Generates a block containing the currently active forum topics and the * most recently added forum topics. @@ -658,7 +658,7 @@ function forum_block_view_pre_render($elements) { } /** - * Implement hook_form(). + * Implements hook_form(). */ function forum_form($node, $form_state) { $type = node_type_get_type($node); @@ -678,7 +678,7 @@ function forum_form($node, $form_state) { } /** - * Implement hook_url_outbound_alter(). + * Implements hook_url_outbound_alter(). */ function forum_url_outbound_alter(&$path, &$options, $original_path) { if (preg_match('!^taxonomy/term/(\d+)!', $path, $matches)) { diff --git a/modules/help/help.module b/modules/help/help.module index 8d0271bb4e1..0fa28c38f28 100644 --- a/modules/help/help.module +++ b/modules/help/help.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function help_menu() { $items['admin/help'] = array( @@ -33,7 +33,7 @@ function help_menu() { } /** - * Implement hook_help(). + * Implements hook_help(). */ function help_help($path, $arg) { switch ($path) { diff --git a/modules/image/image.effects.inc b/modules/image/image.effects.inc index 8bd5fac3a79..992ed49f93e 100644 --- a/modules/image/image.effects.inc +++ b/modules/image/image.effects.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_image_effect_info(). + * Implements hook_image_effect_info(). */ function image_image_effect_info() { $effects = array( diff --git a/modules/image/image.field.inc b/modules/image/image.field.inc index 41726472893..b78425ea8e3 100644 --- a/modules/image/image.field.inc +++ b/modules/image/image.field.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_field_info(). + * Implements hook_field_info(). */ function image_field_info() { return array( @@ -34,7 +34,7 @@ function image_field_info() { } /** - * Implement hook_field_schema(). + * Implements hook_field_schema(). */ function image_field_schema($field) { return array( @@ -65,7 +65,7 @@ function image_field_schema($field) { } /** - * Implement hook_field_settings_form(). + * Implements hook_field_settings_form(). */ function image_field_settings_form($field, $instance) { $defaults = field_info_field_settings($field['type']); @@ -98,7 +98,7 @@ function image_field_settings_form($field, $instance) { } /** - * Implement hook_field_instance_settings_form(). + * Implements hook_field_instance_settings_form(). */ function image_field_instance_settings_form($field, $instance) { $settings = $instance['settings']; @@ -203,14 +203,14 @@ function _image_field_resolution_validate($element, &$form_state) { } /** - * Implement hook_field_load(). + * Implements hook_field_load(). */ function image_field_load($obj_type, $objects, $field, $instances, $langcode, &$items, $age) { file_field_load($obj_type, $objects, $field, $instances, $langcode, $items, $age); } /** - * Implement hook_field_sanitize(). + * Implements hook_field_sanitize(). */ function image_field_sanitize($obj_type, $object, $field, $instance, $langcode, &$items) { // If there are no files specified at all, use the default. @@ -226,42 +226,42 @@ function image_field_sanitize($obj_type, $object, $field, $instance, $langcode, } /** - * Implement hook_field_insert(). + * Implements hook_field_insert(). */ function image_field_insert($obj_type, $object, $field, $instance, $langcode, &$items) { image_field_update($obj_type, $object, $field, $instance, $langcode, $items); } /** - * Implement hook_field_update(). + * Implements hook_field_update(). */ function image_field_update($obj_type, $object, $field, $instance, $langcode, &$items) { file_field_update($obj_type, $object, $field, $instance, $langcode, $items); } /** - * Implement hook_field_delete(). + * Implements hook_field_delete(). */ function image_field_delete($obj_type, $object, $field, $instance, $langcode, &$items) { file_field_delete($obj_type, $object, $field, $instance, $langcode, $items); } /** - * Implement hook_field_delete_revision(). + * Implements hook_field_delete_revision(). */ function image_field_delete_revision($obj_type, $object, $field, $instance, $langcode, &$items) { file_field_delete_revision($obj_type, $object, $field, $instance, $langcode, $items); } /** - * Implement hook_field_is_empty(). + * Implements hook_field_is_empty(). */ function image_field_is_empty($item, $field) { return file_field_is_empty($item, $field); } /** - * Implement hook_field_widget_info(). + * Implements hook_field_widget_info(). */ function image_field_widget_info() { return array( @@ -281,7 +281,7 @@ function image_field_widget_info() { } /** - * Implement hook_field_widget_settings_form(). + * Implements hook_field_widget_settings_form(). */ function image_field_widget_settings_form($field, $instance) { $widget = $instance['widget']; @@ -303,7 +303,7 @@ function image_field_widget_settings_form($field, $instance) { } /** - * Implementation of hook_field_widget(). + * Implements hook_field_widget(). */ function image_field_widget(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) { $elements = file_field_widget($form, $form_state, $field, $instance, $langcode, $items, $delta, $element); @@ -411,7 +411,7 @@ function theme_image_widget($variables) { } /** - * Implement hook_field_formatter_info(). + * Implements hook_field_formatter_info(). */ function image_field_formatter_info() { $formatters = array( diff --git a/modules/image/image.install b/modules/image/image.install index 8cd205e193e..2cb48520b99 100644 --- a/modules/image/image.install +++ b/modules/image/image.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_install(). + * Implements hook_install(). */ function image_install() { // Create the styles directory and ensure it's writable. @@ -16,7 +16,7 @@ function image_install() { } /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function image_uninstall() { // Remove the styles directory and generated images. @@ -25,7 +25,7 @@ function image_uninstall() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function image_schema() { $schema = array(); diff --git a/modules/image/image.module b/modules/image/image.module index c443ff1852c..77a9317ceac 100644 --- a/modules/image/image.module +++ b/modules/image/image.module @@ -64,7 +64,7 @@ function image_help($path, $arg) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function image_menu() { $items = array(); @@ -166,7 +166,7 @@ function image_menu() { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function image_theme() { return array( @@ -225,7 +225,7 @@ function image_theme() { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function image_permission() { return array( @@ -237,14 +237,14 @@ function image_permission() { } /** - * Implement hook_flush_caches(). + * Implements hook_flush_caches(). */ function image_flush_caches() { return array('cache_image'); } /** - * Implement hook_file_download(). + * Implements hook_file_download(). * * Control the access to files underneath the styles directory. */ @@ -295,7 +295,7 @@ function image_file_download($uri) { } /** - * Implement hook_file_move(). + * Implements hook_file_move(). */ function image_file_move($file, $source) { // Delete any image derivatives at the original image path. @@ -303,7 +303,7 @@ function image_file_move($file, $source) { } /** - * Implement hook_file_delete(). + * Implements hook_file_delete(). */ function image_file_delete($file) { // Delete any image derivatives of this image. @@ -311,7 +311,7 @@ function image_file_delete($file) { } /** - * Implement hook_file_references(). + * Implements hook_file_references(). */ function image_file_references($file) { $count = file_get_file_reference_count($file, NULL, 'image'); @@ -319,7 +319,7 @@ function image_file_references($file) { } /** - * Implement hook_image_default_styles(). + * Implements hook_image_default_styles(). */ function image_image_default_styles() { $styles = array(); diff --git a/modules/locale/locale.install b/modules/locale/locale.install index bd656b52d2d..78a0a564d70 100644 --- a/modules/locale/locale.install +++ b/modules/locale/locale.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_install(). + * Implements hook_install(). */ function locale_install() { // locales_source.source and locales_target.target are not used as binary @@ -88,7 +88,7 @@ function locale_update_7001() { */ /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function locale_uninstall() { // Delete all JavaScript translation files. @@ -132,7 +132,7 @@ function locale_uninstall() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function locale_schema() { $schema['languages'] = array( diff --git a/modules/locale/locale.module b/modules/locale/locale.module index 5c1c94300d6..f57fc074c11 100644 --- a/modules/locale/locale.module +++ b/modules/locale/locale.module @@ -42,7 +42,7 @@ define('LOCALE_LANGUAGE_NEGOTIATION_SESSION', 'locale-session'); // Hook implementations /** - * Implement hook_help(). + * Implements hook_help(). */ function locale_help($path, $arg) { switch ($path) { @@ -89,7 +89,7 @@ function locale_help($path, $arg) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function locale_menu() { // Manage languages @@ -294,7 +294,7 @@ function locale_inc_callback() { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function locale_permission() { return array( @@ -308,7 +308,7 @@ function locale_permission() { } /** - * Implement hook_locale(). + * Implements hook_locale(). */ function locale_locale($op = 'groups') { switch ($op) { @@ -354,7 +354,7 @@ function locale_language_selector_form(&$form, &$form_state, $user) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function locale_form_path_admin_form_alter(&$form, &$form_state) { $form['language'] = array( @@ -368,7 +368,7 @@ function locale_form_path_admin_form_alter(&$form, &$form_state) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function locale_form_node_type_form_alter(&$form, &$form_state) { if (isset($form['identity']['type'])) { @@ -393,7 +393,7 @@ function locale_multilingual_node_type($type_name) { } /** - * Implement hook_form_alter(). + * Implements hook_form_alter(). * * Adds language fields to forms. */ @@ -441,7 +441,7 @@ function locale_field_node_form_submit($form, &$form_state) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function locale_theme() { return array( @@ -461,7 +461,7 @@ function locale_theme() { } /** - * Implement hook_field_attach_view_alter(). + * Implements hook_field_attach_view_alter(). */ function locale_field_attach_view_alter(&$output, $context) { // In locale_field_fallback_view() we might call field_attach_view(). The @@ -479,7 +479,7 @@ function locale_field_attach_view_alter(&$output, $context) { } /** - * Implement hook_entity_info_alter(). + * Implements hook_entity_info_alter(). */ function locale_entity_info_alter(&$entity_info) { $enabled = drupal_multilingual(); @@ -489,7 +489,7 @@ function locale_entity_info_alter(&$entity_info) { } /** - * Implement hook_language_types_info(). + * Implements hook_language_types_info(). */ function locale_language_types_info() { return array( @@ -508,7 +508,7 @@ function locale_language_types_info() { } /** - * Implement hook_language_negotiation_info(). + * Implements hook_language_negotiation_info(). */ function locale_language_negotiation_info() { $file = 'includes/locale.inc'; @@ -764,7 +764,7 @@ function locale_system_update($components) { } /** - * Implement hook_js_alter(). + * Implements hook_js_alter(). * * This function checks all JavaScript files currently added via drupal_add_js() * and invokes parsing if they have not yet been parsed for Drupal.t() @@ -826,7 +826,7 @@ function locale_js_alter(&$javascript) { } /* - * Implement hook_css_alter(). + * Implements hook_css_alter(). * * This function checks all CSS files currently added via drupal_add_css() and * and checks to see if a related right to left CSS file should be included. @@ -856,7 +856,7 @@ function locale_css_alter(&$css) { // Language switcher block /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function locale_block_info() { include_once DRUPAL_ROOT . '/includes/language.inc'; @@ -873,7 +873,7 @@ function locale_block_info() { } /** - * Implement hook_block_view(). + * Implements hook_block_view(). * * Displays a language switcher. Only show if we have at least two languages. */ @@ -1065,7 +1065,7 @@ function locale_date_format_reset_form_submit($form, &$form_state) { } /** - * Implement hook_url_outbound_alter(). + * Implements hook_url_outbound_alter(). * * Rewrite outbound URLs with language based prefixes. */ @@ -1104,7 +1104,7 @@ function locale_url_outbound_alter(&$path, &$options, $original_path) { } /* - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function locale_form_comment_form_alter(&$form, &$form_state, $form_id) { // If a content type has multilingual support we set the content language as diff --git a/modules/locale/tests/locale_test.module b/modules/locale/tests/locale_test.module index ca0524ab95a..fe166a91c1b 100644 --- a/modules/locale/tests/locale_test.module +++ b/modules/locale/tests/locale_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_locale(). + * Implements hook_locale(). */ function locale_test_locale($op = 'groups') { switch ($op) { diff --git a/modules/menu/menu.install b/modules/menu/menu.install index d7fa925e792..25e28219b0a 100644 --- a/modules/menu/menu.install +++ b/modules/menu/menu.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function menu_schema() { $schema['menu_custom'] = array( @@ -42,7 +42,7 @@ function menu_schema() { } /** - * Implement hook_install(). + * Implements hook_install(). */ function menu_install() { $system_menus = menu_list_system_menus(); @@ -65,7 +65,7 @@ function menu_install() { } /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function menu_uninstall() { menu_rebuild(); diff --git a/modules/menu/menu.module b/modules/menu/menu.module index 5396d6ced87..d639d94536a 100644 --- a/modules/menu/menu.module +++ b/modules/menu/menu.module @@ -13,7 +13,7 @@ define('MENU_MAX_MENU_NAME_LENGTH_UI', 27); /** - * Implement hook_help(). + * Implements hook_help(). */ function menu_help($path, $arg) { switch ($path) { @@ -40,7 +40,7 @@ function menu_help($path, $arg) { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function menu_permission() { return array( @@ -51,7 +51,7 @@ function menu_permission() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function menu_menu() { $items['admin/structure/menu'] = array( @@ -159,7 +159,7 @@ function menu_menu() { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function menu_theme() { return array( @@ -175,7 +175,7 @@ function menu_theme() { } /** - * Implement hook_enable(). + * Implements hook_enable(). * * Add a link for each custom menu. */ @@ -411,7 +411,7 @@ function menu_reset_item($item) { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function menu_block_info() { $menus = menu_get_menus(FALSE); @@ -428,7 +428,7 @@ function menu_block_info() { } /** - * Implement hook_block_view(). + * Implements hook_block_view(). */ function menu_block_view($delta = '') { $menus = menu_get_menus(FALSE); @@ -442,7 +442,7 @@ function menu_block_view($delta = '') { } /** - * Implement hook_block_view_alter(). + * Implements hook_block_view_alter(). */ function menu_block_view_alter(&$data, $block) { // Add contextual links for system menu blocks. @@ -455,14 +455,14 @@ function menu_block_view_alter(&$data, $block) { } /** - * Implement hook_node_insert(). + * Implements hook_node_insert(). */ function menu_node_insert($node) { menu_node_save($node); } /** - * Implement hook_node_update(). + * Implements hook_node_update(). */ function menu_node_update($node) { menu_node_save($node); @@ -494,7 +494,7 @@ function menu_node_save($node) { } /** - * Implement hook_node_delete(). + * Implements hook_node_delete(). */ function menu_node_delete($node) { // Delete all menu module links that point to this node. @@ -505,7 +505,7 @@ function menu_node_delete($node) { } /** - * Implement hook_node_prepare(). + * Implements hook_node_prepare(). */ function menu_node_prepare($node) { if (empty($node->menu)) { @@ -557,7 +557,7 @@ function _menu_parent_depth_limit($item) { } /** - * Implement hook_form_alter(). Adds menu item fields to the node form. + * Implements hook_form_alter(). Adds menu item fields to the node form. */ function menu_form_alter(&$form, $form_state, $form_id) { if (!empty($form['#node_edit_form'])) { @@ -648,7 +648,7 @@ function menu_node_form_submit($form, &$form_state) { } /** - * Implement hook_form_FORM_ID_alter() for the node type form. + * Implements hook_form_FORM_ID_alter() for the node type form. * Adds menu options to the node type form. */ function menu_form_node_type_form_alter(&$form, $form_state) { diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index 3b21311aed5..eb3688e9877 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -299,7 +299,7 @@ function node_type_form_validate($form, &$form_state) { } /** - * Implement hook_form_submit(). + * Implements hook_form_submit(). */ function node_type_form_submit($form, &$form_state) { $op = isset($form_state['values']['op']) ? $form_state['values']['op'] : ''; @@ -379,7 +379,7 @@ function node_type_form_submit($form, &$form_state) { } /** - * Implement hook_node_type_insert(). + * Implements hook_node_type_insert(). */ function node_node_type_insert($info) { if (!empty($info->old_type) && $info->old_type != $info->type) { @@ -392,7 +392,7 @@ function node_node_type_insert($info) { } /** - * Implement hook_node_type_update(). + * Implements hook_node_type_update(). */ function node_node_type_update($info) { if (!empty($info->old_type) && $info->old_type != $info->type) { diff --git a/modules/node/node.admin.inc b/modules/node/node.admin.inc index ebdac061084..f57d3346cf1 100644 --- a/modules/node/node.admin.inc +++ b/modules/node/node.admin.inc @@ -23,7 +23,7 @@ function node_configure_rebuild_confirm_submit($form, &$form_state) { } /** - * Implement hook_node_operations(). + * Implements hook_node_operations(). */ function node_node_operations() { $operations = array( @@ -637,7 +637,7 @@ function node_multiple_delete_confirm_submit($form, &$form_state) { } /** - * Implement hook_modules_installed() + * Implements hook_modules_installed(). */ function node_modules_installed($modules) { // Clear node type cache for node permissions. diff --git a/modules/node/node.install b/modules/node/node.install index 31ad1b23809..bb37a89536f 100644 --- a/modules/node/node.install +++ b/modules/node/node.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function node_schema() { $schema['node'] = array( diff --git a/modules/node/node.module b/modules/node/node.module index 71e7512ffab..1d8a9183d2d 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -61,7 +61,7 @@ define('NODE_ACCESS_DENY', 'deny'); define('NODE_ACCESS_IGNORE', NULL); /** - * Implement hook_help(). + * Implements hook_help(). */ function node_help($path, $arg) { // Remind site administrators about the {node_access} table being flagged @@ -130,7 +130,7 @@ function node_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function node_theme() { return array( @@ -174,7 +174,7 @@ function node_theme() { } /** - * Implement hook_cron(). + * Implements hook_cron(). */ function node_cron() { db_delete('history') @@ -183,7 +183,7 @@ function node_cron() { } /** - * Implement hook_entity_info(). + * Implements hook_entity_info(). */ function node_entity_info() { $return = array( @@ -224,7 +224,7 @@ function node_entity_info() { /** - * Implement hook_field_build_modes(). + * Implements hook_field_build_modes(). */ function node_field_build_modes($obj_type) { $modes = array(); @@ -247,7 +247,7 @@ function node_field_build_modes($obj_type) { } /** - * Implement hook_admin_paths(). + * Implements hook_admin_paths(). */ function node_admin_paths() { $paths = array( @@ -1255,7 +1255,7 @@ function node_build_content($node, $build_mode = 'full') { } /** - * Implement hook_language_negotiation_info(). + * Implements hook_language_negotiation_info(). */ function node_language_negotiation_info() { $providers = array(); @@ -1411,7 +1411,7 @@ function theme_node_log_message($variables) { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function node_permission() { $perms = array( @@ -1477,7 +1477,7 @@ function _node_rankings(SelectQueryExtender $query) { } /** - * Implement hook_search_info(). + * Implements hook_search_info(). */ function node_search_info() { return array( @@ -1487,14 +1487,14 @@ function node_search_info() { } /** - * Implement hook_search_access(). + * Implements hook_search_access(). */ function node_search_access() { return user_access('access content'); } /** - * Implement hook_search_reset(). + * Implements hook_search_reset(). */ function node_search_reset() { db_update('search_dataset') @@ -1504,7 +1504,7 @@ function node_search_reset() { } /** - * Implement hook_search_status(). + * Implements hook_search_status(). */ function node_search_status() { $total = db_query('SELECT COUNT(*) FROM {node} WHERE status = :status', array(':status' => NODE_PUBLISHED))->fetchField(); @@ -1513,7 +1513,7 @@ function node_search_status() { } /** - * Implement hook_search_admin(). + * Implements hook_search_admin(). */ function node_search_admin() { // Output form for defining rank factor weights. @@ -1540,7 +1540,7 @@ function node_search_admin() { } /** - * Implement hook_search_execute(). + * Implements hook_search_execute(). */ function node_search_execute($keys = NULL) { // Build matching conditions @@ -1606,7 +1606,7 @@ function node_search_execute($keys = NULL) { } /** - * Implement hook_ranking(). + * Implements hook_ranking(). */ function node_ranking() { // Create the ranking array and add the basic ranking options. @@ -1641,7 +1641,7 @@ function node_ranking() { } /** - * Implement hook_user_cancel(). + * Implements hook_user_cancel(). */ function node_user_cancel($edit, $account, $method) { switch ($method) { @@ -1766,7 +1766,7 @@ function _node_add_access() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function node_menu() { $items['admin/content'] = array( @@ -1994,7 +1994,7 @@ function _node_custom_theme() { } /** - * Implement hook_init(). + * Implements hook_init(). */ function node_init() { drupal_add_css(drupal_get_path('module', 'node') . '/node.css'); @@ -2018,7 +2018,7 @@ function node_revision_list($node) { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function node_block_info() { $blocks['syndicate']['info'] = t('Syndicate'); @@ -2028,7 +2028,7 @@ function node_block_info() { } /** - * Implement hook_block_view(). + * Implements hook_block_view(). */ function node_block_view($delta = '') { $block['subject'] = t('Syndicate'); @@ -2213,7 +2213,7 @@ function node_page_view($node) { } /** - * Implement hook_update_index(). + * Implements hook_update_index(). */ function node_update_index() { $limit = (int)variable_get('search_cron_limit', 100); @@ -2256,7 +2256,7 @@ function _node_index_node($node) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function node_form_search_form_alter(&$form, $form_state) { if ($form['module']['#value'] == 'node' && user_access('use advanced search')) { @@ -2513,7 +2513,7 @@ function node_access($op, $node, $account = NULL) { } /** - * Implement hook_node_access(). + * Implements hook_node_access(). */ function node_node_access($node, $op, $account) { $type = is_string($node) ? $node : $node->type; @@ -2675,7 +2675,7 @@ function node_access_view_all_nodes() { /** - * Implement hook_query_TAG_alter(). + * Implements hook_query_TAG_alter(). */ function node_query_node_access_alter(QueryAlterableInterface $query) { // Skip the extra expensive alterations if site has no node access control @@ -2961,7 +2961,7 @@ function _node_access_rebuild_batch_finished($success, $results, $operations) { */ /** - * Implement hook_form(). + * Implements hook_form(). */ function node_content_form($node, $form_state) { // It is impossible to define a content type without implementing hook_form() @@ -2975,7 +2975,7 @@ function node_content_form($node, $form_state) { */ /** - * Implement hook_forms(). + * Implements hook_forms(). * All node forms share the same form handler. */ function node_forms() { @@ -2989,7 +2989,7 @@ function node_forms() { } /** - * Implement hook_action_info(). + * Implements hook_action_info(). */ function node_action_info() { return array( @@ -3058,8 +3058,7 @@ function node_action_info() { } /** - * Implement a Drupal action. - * Sets the status of a node to 1, meaning published. + * Implements a Drupal action: sets the status of a node to 1 (published). */ function node_publish_action($node, $context = array()) { $node->status = NODE_PUBLISHED; @@ -3067,8 +3066,7 @@ function node_publish_action($node, $context = array()) { } /** - * Implement a Drupal action. - * Sets the status of a node to 0, meaning unpublished. + * Implements a Drupal action: sets the status of a node to 0 (unpublished). */ function node_unpublish_action($node, $context = array()) { $node->status = NODE_NOT_PUBLISHED; @@ -3076,8 +3074,7 @@ function node_unpublish_action($node, $context = array()) { } /** - * Implement a Drupal action. - * Sets the sticky-at-top-of-list property of a node to 1. + * Implements a Drupal action: sets sticky-at-top-of-list property to 1. */ function node_make_sticky_action($node, $context = array()) { $node->sticky = NODE_STICKY; @@ -3085,8 +3082,7 @@ function node_make_sticky_action($node, $context = array()) { } /** - * Implement a Drupal action. - * Sets the sticky-at-top-of-list property of a node to 0. + * Implements a Drupal action: sets sticky-at-top-of-list property to 0. */ function node_make_unsticky_action($node, $context = array()) { $node->sticky = NODE_NOT_STICKY; @@ -3094,8 +3090,7 @@ function node_make_unsticky_action($node, $context = array()) { } /** - * Implement a Drupal action. - * Sets the promote property of a node to 1. + * Implements a Drupal action: sets the promote property of a node to 1. */ function node_promote_action($node, $context = array()) { $node->promote = NODE_PROMOTED; @@ -3103,8 +3098,7 @@ function node_promote_action($node, $context = array()) { } /** - * Implement a Drupal action. - * Sets the promote property of a node to 0. + * Implements a Drupal action: sets the promote property of a node to 0. */ function node_unpromote_action($node, $context = array()) { $node->promote = NODE_NOT_PROMOTED; @@ -3112,8 +3106,7 @@ function node_unpromote_action($node, $context = array()) { } /** - * Implement a Drupal action. - * Saves a node. + * Implements a Drupal action: saves a node. */ function node_save_action($node) { node_save($node); @@ -3121,8 +3114,7 @@ function node_save_action($node) { } /** - * Implement a configurable Drupal action. - * Assigns ownership of a node to a user. + * Implements a configurable Drupal action: assigns ownership of node to user. */ function node_assign_owner_action($node, $context) { $node->uid = $context['owner_uid']; @@ -3130,6 +3122,9 @@ function node_assign_owner_action($node, $context) { watchdog('action', 'Changed owner of @type %title to uid %name.', array('@type' => node_type_get_type($node), '%title' => $node->title[LANGUAGE_NONE][0]['value'], '%name' => $owner_name)); } +/** + * Generates settings form for node_assign_owner_action(). + */ function node_assign_owner_action_form($context) { $description = t('The username of the user to which you would like to assign ownership.'); $count = db_query("SELECT COUNT(*) FROM {users}")->fetchField(); @@ -3167,6 +3162,9 @@ function node_assign_owner_action_form($context) { return $form; } +/** + * Validates settings form for node_assign_owner_action(). + */ function node_assign_owner_action_validate($form, $form_state) { $exists = (bool) db_query_range('SELECT 1 FROM {users} WHERE name = :name', 0, 1, array(':name' => $form_state['values']['owner_name']))->fetchField(); if (!$exists) { @@ -3174,12 +3172,18 @@ function node_assign_owner_action_validate($form, $form_state) { } } +/** + * Saves settings form for node_assign_owner_action(). + */ function node_assign_owner_action_submit($form, $form_state) { // Username can change, so we need to store the ID, not the username. $uid = db_query('SELECT uid from {users} WHERE name = :name', array(':name' => $form_state['values']['owner_name']))->fetchField(); return array('owner_uid' => $uid); } +/** + * Generates settings form for node_unpublish_by_keyword_action(). + */ function node_unpublish_by_keyword_action_form($context) { $form['keywords'] = array( '#title' => t('Keywords'), @@ -3190,13 +3194,15 @@ function node_unpublish_by_keyword_action_form($context) { return $form; } +/** + * Saves settings form for node_unpublish_by_keyword_action(). + */ function node_unpublish_by_keyword_action_submit($form, $form_state) { return array('keywords' => drupal_explode_tags($form_state['values']['keywords'])); } /** - * Implement a configurable Drupal action. - * Unpublish a node if it contains a certain string. + * Implements a configurable Drupal action: unpublish node containing keywords. * * @param $node * A node object. @@ -3215,7 +3221,7 @@ function node_unpublish_by_keyword_action($node, $context) { } /** - * Implement hook_requirements(). + * Implements hook_requirements(). */ function node_requirements($phase) { $requirements = array(); diff --git a/modules/node/node.tokens.inc b/modules/node/node.tokens.inc index e0745867c60..06a46310ad0 100644 --- a/modules/node/node.tokens.inc +++ b/modules/node/node.tokens.inc @@ -9,7 +9,7 @@ /** - * Implement hook_token_info(). + * Implements hook_token_info(). */ function node_token_info() { $type = array( @@ -92,7 +92,7 @@ function node_token_info() { } /** - * Implement hook_tokens(). + * Implements hook_tokens(). */ function node_tokens($type, $tokens, array $data = array(), array $options = array()) { $url_options = array('absolute' => TRUE); diff --git a/modules/node/tests/node_test.module b/modules/node/tests/node_test.module index dc354ff806d..3fcdb08f4d0 100644 --- a/modules/node/tests/node_test.module +++ b/modules/node/tests/node_test.module @@ -8,7 +8,7 @@ */ /** - * Implement hook_node_view(). + * Implements hook_node_view(). */ function node_test_node_view($node, $build_mode) { if ($build_mode == 'rss') { @@ -35,7 +35,7 @@ function node_test_node_view($node, $build_mode) { } /** - * Implement hook_node_grants(). + * Implements hook_node_grants(). */ function node_test_node_grants($account, $op) { // Give everyone full grants so we don't break other node tests. @@ -49,7 +49,7 @@ function node_test_node_grants($account, $op) { } /** - * Implement hook_node_access_records(). + * Implements hook_node_access_records(). */ function node_test_node_access_records($node) { $grants = array(); @@ -79,7 +79,7 @@ function node_test_node_access_records($node) { } /** - * Implement hook_node_access_records_alter(). + * Implements hook_node_access_records_alter(). */ function node_test_node_access_records_alter(&$grants, $node) { if (!empty($grants)) { @@ -94,7 +94,7 @@ function node_test_node_access_records_alter(&$grants, $node) { } /** - * Implement hook_node_grants_alter(). + * Implements hook_node_grants_alter(). */ function node_test_node_grants_alter(&$grants, $account, $op) { // Return an empty array of grants to prove that we can alter by reference. diff --git a/modules/node/tests/node_test_exception.module b/modules/node/tests/node_test_exception.module index 7b09c77c7dd..a8191a58cd8 100644 --- a/modules/node/tests/node_test_exception.module +++ b/modules/node/tests/node_test_exception.module @@ -8,7 +8,7 @@ */ /** - * Implement hook_node_insert(). + * Implements hook_node_insert(). */ function node_test_exception_node_insert($node) { if ($node->title['zxx'][0]['value'] == 'testing_transaction_exception') { diff --git a/modules/openid/openid.install b/modules/openid/openid.install index 62955ad2b51..f9d1671aa38 100644 --- a/modules/openid/openid.install +++ b/modules/openid/openid.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function openid_schema() { $schema['openid_association'] = array( @@ -59,7 +59,7 @@ function openid_schema() { } /** - * Implement hook_requirements(). + * Implements hook_requirements(). */ function openid_requirements($phase) { $requirements = array(); diff --git a/modules/openid/openid.module b/modules/openid/openid.module index f8141912c00..acf9b996ac5 100644 --- a/modules/openid/openid.module +++ b/modules/openid/openid.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function openid_menu() { $items['openid/authenticate'] = array( @@ -39,7 +39,7 @@ function openid_menu() { } /** - * Implement hook_help(). + * Implements hook_help(). */ function openid_help($path, $arg) { switch ($path) { @@ -62,7 +62,7 @@ function openid_help($path, $arg) { } /** - * Implement hook_user_insert(). + * Implements hook_user_insert(). */ function openid_user_insert(&$edit, $account, $category) { if (isset($_SESSION['openid']['values'])) { @@ -76,14 +76,14 @@ function openid_user_insert(&$edit, $account, $category) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function openid_form_user_login_block_alter(&$form, &$form_state) { _openid_user_login_form_alter($form, $form_state); } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function openid_form_user_login_alter(&$form, &$form_state) { _openid_user_login_form_alter($form, $form_state); @@ -128,7 +128,7 @@ function _openid_user_login_form_alter(&$form, &$form_state) { } /** - * Implement hook_form_alter(). + * Implements hook_form_alter(). * * Adds OpenID login to the login forms. */ diff --git a/modules/openid/tests/openid_test.install b/modules/openid/tests/openid_test.install index ac826fd47b8..f59c3c7014a 100644 --- a/modules/openid/tests/openid_test.install +++ b/modules/openid/tests/openid_test.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_install(). + * Implements hook_install(). */ function openid_test_install() { module_load_include('inc', 'openid'); diff --git a/modules/openid/tests/openid_test.module b/modules/openid/tests/openid_test.module index 365ddf9b397..4bf839d586d 100644 --- a/modules/openid/tests/openid_test.module +++ b/modules/openid/tests/openid_test.module @@ -22,7 +22,7 @@ */ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function openid_test_menu() { $items['openid-test/yadis/xrds'] = array( diff --git a/modules/path/path.module b/modules/path/path.module index 031526564fb..294a07730ea 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function path_help($path, $arg) { switch ($path) { @@ -36,7 +36,7 @@ function path_help($path, $arg) { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function path_permission() { return array( @@ -50,7 +50,7 @@ function path_permission() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function path_menu() { $items['admin/config/search/path'] = array( @@ -93,7 +93,7 @@ function path_menu() { } /** - * Implement hook_form_alter(). + * Implements hook_form_alter(). */ function path_form_alter(&$form, $form_state, $form_id) { if (!empty($form['#node_edit_form'])) { @@ -180,7 +180,7 @@ function path_form_element_validate($element, &$form_state, $complete_form) { } /** - * Implement hook_node_insert(). + * Implements hook_node_insert(). */ function path_node_insert($node) { if (isset($node->path)) { @@ -197,7 +197,7 @@ function path_node_insert($node) { } /** - * Implement hook_node_update(). + * Implements hook_node_update(). */ function path_node_update($node) { if (isset($node->path)) { @@ -218,7 +218,7 @@ function path_node_update($node) { } /** - * Implement hook_node_delete(). + * Implements hook_node_delete(). */ function path_node_delete($node) { // Delete all aliases associated with this node. @@ -226,7 +226,7 @@ function path_node_delete($node) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function path_form_taxonomy_form_term_alter(&$form, $form_state) { // Make sure this does not show up on the delete confirmation form. @@ -261,7 +261,7 @@ function path_form_taxonomy_form_term_alter(&$form, $form_state) { } /** - * Implement hook_taxonomy_term_insert(). + * Implements hook_taxonomy_term_insert(). */ function path_taxonomy_term_insert($term) { if (isset($term->path)) { @@ -278,7 +278,7 @@ function path_taxonomy_term_insert($term) { } /** - * Implement hook_taxonomy_term_update(). + * Implements hook_taxonomy_term_update(). */ function path_taxonomy_term_update($term) { if (isset($term->path)) { @@ -299,7 +299,7 @@ function path_taxonomy_term_update($term) { } /** - * Implement hook_taxonomy_term_delete(). + * Implements hook_taxonomy_term_delete(). */ function path_taxonomy_term_delete($term) { // Delete all aliases associated with this term. diff --git a/modules/php/php.install b/modules/php/php.install index a8ac75ce728..a9eaa8b67cc 100644 --- a/modules/php/php.install +++ b/modules/php/php.install @@ -38,7 +38,7 @@ function php_enable() { } /** - * Implement hook_disable(). + * Implements hook_disable(). */ function php_disable() { drupal_set_message(t('The PHP module has been disabled. Please note that any existing content that was using the PHP filter will now be visible in plain text. This might pose a security risk by exposing sensitive information, if any, used in the PHP code.')); diff --git a/modules/php/php.module b/modules/php/php.module index b623e28ff39..eb7a1020e7d 100644 --- a/modules/php/php.module +++ b/modules/php/php.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function php_help($path, $arg) { switch ($path) { @@ -21,7 +21,7 @@ function php_help($path, $arg) { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function php_permission() { return array( @@ -120,7 +120,7 @@ else { } /** - * Implement hook_filter_info(). + * Implements hook_filter_info(). * * Provide PHP code filter. Use with care. */ diff --git a/modules/poll/poll.install b/modules/poll/poll.install index 8bfcd8eefb2..d80d3f73568 100644 --- a/modules/poll/poll.install +++ b/modules/poll/poll.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function poll_schema() { $schema['poll'] = array( diff --git a/modules/poll/poll.module b/modules/poll/poll.module index 4fc1a36689b..a63b0440340 100644 --- a/modules/poll/poll.module +++ b/modules/poll/poll.module @@ -8,7 +8,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function poll_help($path, $arg) { switch ($path) { @@ -28,14 +28,14 @@ function poll_help($path, $arg) { } /** - * Implement hook_init(). + * Implements hook_init(). */ function poll_init() { drupal_add_css(drupal_get_path('module', 'poll') . '/poll.css'); } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function poll_theme() { return array( @@ -58,7 +58,7 @@ function poll_theme() { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function poll_permission() { $perms = array( @@ -77,7 +77,7 @@ function poll_permission() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function poll_menu() { $items['poll'] = array( @@ -121,7 +121,7 @@ function _poll_menu_access($node, $perm, $inspect_allowvotes) { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function poll_block_info() { if (user_access('access content')) { @@ -131,7 +131,7 @@ function poll_block_info() { } /** - * Implement hook_block_view(). + * Implements hook_block_view(). * * Generates a block containing the latest poll. */ @@ -161,7 +161,7 @@ function poll_block_view($delta = '') { } /** - * Implement hook_cron(). + * Implements hook_cron(). * * Closes polls that have exceeded their allowed runtime. */ @@ -176,7 +176,7 @@ function poll_cron() { } /** - * Implement hook_node_info(). + * Implements hook_node_info(). */ function poll_node_info() { return array( @@ -191,7 +191,7 @@ function poll_node_info() { } /** - * Implement hook_field_extra_fields(). + * Implements hook_field_extra_fields(). */ function poll_field_extra_fields($bundle) { $extra = array(); @@ -213,7 +213,7 @@ function poll_field_extra_fields($bundle) { } /** - * Implement hook_form(). + * Implements hook_form(). */ function poll_form($node, &$form_state) { global $user; @@ -397,7 +397,7 @@ function poll_node_form_submit(&$form, &$form_state) { } /** - * Implement hook_validate(). + * Implements hook_validate(). */ function poll_validate($node, $form) { if (isset($node->title)) { @@ -421,7 +421,7 @@ function poll_validate($node, $form) { } /** - * Implement hook_node_prepare_translation(). + * Implements hook_node_prepare_translation(). */ function poll_node_prepare_translation($node) { if ($node->type == 'poll') { @@ -430,7 +430,7 @@ function poll_node_prepare_translation($node) { } /** - * Implement hook_load(). + * Implements hook_load(). */ function poll_load($nodes) { global $user; @@ -469,7 +469,7 @@ function poll_load($nodes) { } /** - * Implement hook_insert(). + * Implements hook_insert(). */ function poll_insert($node) { if (!user_access('administer nodes')) { @@ -503,7 +503,7 @@ function poll_insert($node) { } /** - * Implement hook_update(). + * Implements hook_update(). */ function poll_update($node) { // Update poll settings. @@ -540,7 +540,7 @@ function poll_update($node) { } /** - * Implement hook_delete(). + * Implements hook_delete(). */ function poll_delete($node) { db_delete('poll') @@ -596,7 +596,7 @@ function poll_block_latest_poll_view($node) { /** - * Implement hook_view(). + * Implements hook_view(). */ function poll_view($node, $build_mode = 'full') { global $user; @@ -883,7 +883,7 @@ function poll_cancel($form, &$form_state) { } /** - * Implement hook_user_cancel(). + * Implements hook_user_cancel(). */ function poll_user_cancel($edit, $account, $method) { switch ($method) { diff --git a/modules/poll/poll.tokens.inc b/modules/poll/poll.tokens.inc index 76d40825c72..37d82ab0c55 100644 --- a/modules/poll/poll.tokens.inc +++ b/modules/poll/poll.tokens.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_token_info(). + * Implements hook_token_info(). */ function poll_token_info() { $node['poll-votes'] = array( @@ -37,7 +37,7 @@ function poll_token_info() { } /** - * Implement hook_tokens(). + * Implements hook_tokens(). */ function poll_tokens($type, $tokens, array $data = array(), array $options = array()) { $url_options = array('absolute' => TRUE); diff --git a/modules/profile/profile.install b/modules/profile/profile.install index 153f3095926..409e3fe38b2 100644 --- a/modules/profile/profile.install +++ b/modules/profile/profile.install @@ -7,14 +7,14 @@ */ /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function profile_uninstall() { variable_del('profile_block_author_fields'); } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function profile_schema() { $schema['profile_field'] = array( diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 55b39802663..d27c7440a36 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -27,7 +27,7 @@ define('PROFILE_PUBLIC_LISTINGS', 3); define('PROFILE_HIDDEN', 4); /** - * Implement hook_help(). + * Implements hook_help(). */ function profile_help($path, $arg) { switch ($path) { @@ -49,7 +49,7 @@ function profile_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function profile_theme() { return array( @@ -73,7 +73,7 @@ function profile_theme() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function profile_menu() { $items['profile'] = array( @@ -133,7 +133,7 @@ function profile_menu() { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function profile_block_info() { $blocks['author-information']['info'] = t('Author information'); @@ -142,7 +142,7 @@ function profile_menu() { } /** - * Implement hook_block_configure(). + * Implements hook_block_configure(). */ function profile_block_configure($delta = '') { // Compile a list of fields to show @@ -163,14 +163,14 @@ function profile_block_configure($delta = '') { } /** - * Implement hook_block_save(). + * Implements hook_block_save(). */ function profile_block_save($delta = '', $edit = array()) { variable_set('profile_block_author_fields', $edit['profile_block_author_fields']); } /** - * Implement hook_block_view(). + * Implements hook_block_view(). */ function profile_block_view($delta = '') { if (user_access('access user profiles')) { @@ -210,7 +210,7 @@ function profile_block_view($delta = '') { } /** - * Implement hook_user_presave(). + * Implements hook_user_presave(). */ function profile_user_presave(&$edit, $account, $category) { if ($account->uid) { @@ -219,14 +219,14 @@ function profile_user_presave(&$edit, $account, $category) { } /** - * Implement hook_user_insert(). + * Implements hook_user_insert(). */ function profile_user_insert(&$edit, $account, $category) { profile_save_profile($edit, $account, $category, TRUE); } /** - * Implement hook_user_cancel(). + * Implements hook_user_cancel(). */ function profile_user_cancel(&$edit, $account, $method) { switch ($method) { @@ -240,7 +240,7 @@ function profile_user_cancel(&$edit, $account, $method) { } /** - * Implement hook_user_load(). + * Implements hook_user_load(). */ function profile_user_load($users) { $result = db_query('SELECT f.name, f.type, v.uid, v.value FROM {profile_field} f INNER JOIN {profile_value} v ON f.fid = v.fid WHERE uid IN (:uids)', array(':uids' => array_keys($users))); @@ -317,7 +317,7 @@ function profile_view_field($account, $field) { } /** - * Implement hook_user_view(). + * Implements hook_user_view(). */ function profile_user_view($account) { // Show private fields to administrators and people viewing their own account. @@ -367,7 +367,7 @@ function _profile_form_explanation($field) { } /** - * Implement hook_form_alter(). + * Implements hook_form_alter(). */ function profile_form_alter(&$form, &$form_state, $form_id) { if (!($form_id == 'user_register_form' || $form_id == 'user_profile_form')) { @@ -489,7 +489,7 @@ function profile_user_form_validate($form, &$form_state) { } /** - * Implement hook_user_categories(). + * Implements hook_user_categories(). */ function profile_user_categories() { $result = db_query("SELECT DISTINCT(category) FROM {profile_field}"); diff --git a/modules/rdf/tests/rdf_test.install b/modules/rdf/tests/rdf_test.install index b5253f7f7a9..2498fe058aa 100644 --- a/modules/rdf/tests/rdf_test.install +++ b/modules/rdf/tests/rdf_test.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_install(). + * Implements hook_install(). */ function rdf_test_install() { $rdf_mappings = array( diff --git a/modules/search/search.install b/modules/search/search.install index 8582fc0d3d4..54d19d1fa43 100644 --- a/modules/search/search.install +++ b/modules/search/search.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function search_uninstall() { variable_del('minimum_word_size'); @@ -16,7 +16,7 @@ function search_uninstall() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function search_schema() { $schema['search_dataset'] = array( diff --git a/modules/search/search.module b/modules/search/search.module index 81d4251f5e0..179ecceb624 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -91,7 +91,7 @@ define('PREG_CLASS_CJK', '\x{3041}-\x{30ff}\x{31f0}-\x{31ff}\x{3400}-\x{4db5}' . '\x{4e00}-\x{9fbb}\x{f900}-\x{fad9}'); /** - * Implement hook_help(). + * Implements hook_help(). */ function search_help($path, $arg) { switch ($path) { @@ -113,7 +113,7 @@ function search_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function search_theme() { return array( @@ -138,7 +138,7 @@ function search_theme() { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function search_permission() { return array( @@ -155,7 +155,7 @@ function search_permission() { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function search_block_info() { $blocks['form']['info'] = t('Search form'); @@ -165,7 +165,7 @@ function search_block_info() { } /** - * Implement hook_block_view(). + * Implements hook_block_view(). */ function search_block_view($delta = '') { if (user_access('search content')) { @@ -175,7 +175,7 @@ function search_block_view($delta = '') { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function search_menu() { $items['search'] = array( @@ -300,7 +300,7 @@ function search_dirty($word = NULL) { } /** - * Implement hook_cron(). + * Implements hook_cron(). * * Fires hook_update_index() in all modules and cleans up dirty words (see * search_dirty). @@ -709,7 +709,7 @@ function search_touch_node($nid) { } /** - * Implement hook_node_update_index(). + * Implements hook_node_update_index(). */ function search_node_update_index($node) { // Transplant links to a node into the target node. @@ -724,7 +724,7 @@ function search_node_update_index($node) { } /** - * Implement hook_node_update(). + * Implements hook_node_update(). */ function search_node_update($node) { // Reindex the node when it is updated. The node is automatically indexed @@ -733,7 +733,7 @@ function search_node_update($node) { } /** - * Implement hook_comment_insert(). + * Implements hook_comment_insert(). */ function search_comment_insert($comment) { // Reindex the node when comments are added. @@ -741,7 +741,7 @@ function search_comment_insert($comment) { } /** - * Implement hook_comment_update(). + * Implements hook_comment_update(). */ function search_comment_update($comment) { // Reindex the node when comments are changed. @@ -749,7 +749,7 @@ function search_comment_update($comment) { } /** - * Implement hook_comment_delete(). + * Implements hook_comment_delete(). */ function search_comment_delete($comment) { // Reindex the node when comments are deleted. @@ -757,7 +757,7 @@ function search_comment_delete($comment) { } /** - * Implement hook_comment_publish(). + * Implements hook_comment_publish(). */ function search_comment_publish($comment) { // Reindex the node when comments are published. @@ -765,7 +765,7 @@ function search_comment_publish($comment) { } /** - * Implement hook_comment_unpublish(). + * Implements hook_comment_unpublish(). */ function search_comment_unpublish($comment) { // Reindex the node when comments are unpublished. diff --git a/modules/shortcut/shortcut.install b/modules/shortcut/shortcut.install index 8fd57f0cc99..3a5c87b61ea 100644 --- a/modules/shortcut/shortcut.install +++ b/modules/shortcut/shortcut.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_enable(). + * Implements hook_enable(). */ function shortcut_enable() { if (shortcut_set_load(SHORTCUT_DEFAULT_SET_NAME)) { @@ -40,7 +40,7 @@ function shortcut_enable() { } /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function shortcut_uninstall() { // Delete the menu links associated with each shortcut set. @@ -50,7 +50,7 @@ function shortcut_uninstall() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function shortcut_schema() { $schema['shortcut_set'] = array( diff --git a/modules/shortcut/shortcut.module b/modules/shortcut/shortcut.module index 02b89296c6d..4bccd568008 100644 --- a/modules/shortcut/shortcut.module +++ b/modules/shortcut/shortcut.module @@ -35,7 +35,7 @@ function shortcut_help($path, $arg) { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function shortcut_permission() { return array( @@ -52,7 +52,7 @@ function shortcut_permission() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function shortcut_menu() { $items['admin/config/system/shortcut'] = array( @@ -121,7 +121,7 @@ function shortcut_menu() { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function shortcut_theme() { return array( @@ -133,7 +133,7 @@ function shortcut_theme() { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function shortcut_block_info() { $blocks['shortcuts']['info'] = t('Shortcuts'); @@ -144,7 +144,7 @@ function shortcut_block_info() { } /** - * Implement hook_block_view(). + * Implements hook_block_view(). */ function shortcut_block_view($delta = '') { if ($delta == 'shortcuts') { @@ -522,7 +522,7 @@ function shortcut_renderable_links($shortcut_set = NULL) { } /** - * Implement hook_page_build(). + * Implements hook_page_build(). */ function shortcut_page_build(&$page) { if (shortcut_set_edit_access()) { @@ -610,7 +610,7 @@ function shortcut_toolbar_pre_render($toolbar) { } /** - * Implement hook_preprocess_page(). + * Implements hook_preprocess_page(). */ function shortcut_preprocess_page(&$variables) { if (isset($variables['page']['add_or_remove_shortcut'])) { diff --git a/modules/simpletest/simpletest.install b/modules/simpletest/simpletest.install index d12d5befd9f..80230319255 100644 --- a/modules/simpletest/simpletest.install +++ b/modules/simpletest/simpletest.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_install(). + * Implements hook_install(). */ function simpletest_install() { // Check for files directory. @@ -98,7 +98,7 @@ function simpletest_get_file_count($directory, $filename) { } /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function simpletest_uninstall() { simpletest_clean_environment(); diff --git a/modules/simpletest/simpletest.module b/modules/simpletest/simpletest.module index 9efb7c1bc62..ae480269c95 100644 --- a/modules/simpletest/simpletest.module +++ b/modules/simpletest/simpletest.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function simpletest_help($path, $arg) { switch ($path) { @@ -26,7 +26,7 @@ function simpletest_help($path, $arg) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function simpletest_menu() { $items['admin/config/development/testing'] = array( @@ -62,7 +62,7 @@ function simpletest_menu() { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function simpletest_permission() { return array( @@ -74,7 +74,7 @@ function simpletest_permission() { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function simpletest_theme() { return array( @@ -90,7 +90,7 @@ function simpletest_theme() { } /** - * Implementation of hook_stream_wrappers(). + * Implements hook_stream_wrappers(). */ function simpletest_test_stream_wrappers() { return array( @@ -103,7 +103,7 @@ function simpletest_test_stream_wrappers() { } /** - * Implement hook_js_alter(). + * Implements hook_js_alter(). */ function simpletest_js_alter(&$javascript) { // Since SimpleTest is a special use case for the table select, stick the @@ -375,7 +375,7 @@ function simpletest_test_get_all() { } /** - * Implementation of hook_registry_files_alter(). + * Implements hook_registry_files_alter(). * * Add the test files for disabled modules so that we get a list containing * all the avialable tests. diff --git a/modules/simpletest/tests/actions_loop_test.install b/modules/simpletest/tests/actions_loop_test.install index cd6582d524a..b0cd6670845 100644 --- a/modules/simpletest/tests/actions_loop_test.install +++ b/modules/simpletest/tests/actions_loop_test.install @@ -2,7 +2,7 @@ // $Id$ /** - * Implementation of hook_install(). + * Implements hook_install(). */ function actions_loop_test_install() { db_update('system') diff --git a/modules/simpletest/tests/actions_loop_test.module b/modules/simpletest/tests/actions_loop_test.module index a31415891bc..9c966c3e0ac 100644 --- a/modules/simpletest/tests/actions_loop_test.module +++ b/modules/simpletest/tests/actions_loop_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_trigger_info(). + * Implements hook_trigger_info(). */ function actions_loop_test_trigger_info() { return array( @@ -15,7 +15,7 @@ function actions_loop_test_trigger_info() { } /** - * Implement hook_watchdog(). + * Implements hook_watchdog(). */ function actions_loop_test_watchdog(array $log_entry) { // If the triggering actions are not explicitly enabled, abort. @@ -36,7 +36,7 @@ function actions_loop_test_watchdog(array $log_entry) { } /** - * Implement hook_init(). + * Implements hook_init(). */ function actions_loop_test_init() { if (!empty($_GET['trigger_actions_on_watchdog'])) { @@ -45,7 +45,7 @@ function actions_loop_test_init() { } /** - * Implement hook_action_info(). + * Implements hook_action_info(). */ function actions_loop_test_action_info() { return array( diff --git a/modules/simpletest/tests/ajax_test.module b/modules/simpletest/tests/ajax_test.module index 27bf3bf1691..9586170419e 100644 --- a/modules/simpletest/tests/ajax_test.module +++ b/modules/simpletest/tests/ajax_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function ajax_test_menu() { $items['ajax-test/render'] = array( diff --git a/modules/simpletest/tests/common_test.module b/modules/simpletest/tests/common_test.module index e8c6602c23e..36697b5affb 100644 --- a/modules/simpletest/tests/common_test.module +++ b/modules/simpletest/tests/common_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function common_test_menu() { $items['common-test/drupal_goto'] = array( @@ -61,7 +61,7 @@ function common_test_drupal_goto_land_fail() { } /** - * Implement hook_drupal_goto_alter(). + * Implements hook_drupal_goto_alter(). */ function common_test_drupal_goto_alter(&$path, &$options, &$http_response_code) { if ($path == 'common-test/drupal_goto/fail') { @@ -70,7 +70,7 @@ function common_test_drupal_goto_alter(&$path, &$options, &$http_response_code) } /** - * Implement hook_TYPE_alter(). + * Implements hook_TYPE_alter(). */ function common_test_drupal_alter_alter(&$data, &$arg2 = NULL, &$arg3 = NULL) { // Alter first argument. @@ -101,7 +101,7 @@ function common_test_drupal_alter_alter(&$data, &$arg2 = NULL, &$arg3 = NULL) { } /** - * Implement hook_TYPE_alter() on behalf of Garland theme. + * Implements hook_TYPE_alter() on behalf of Garland theme. * * Same as common_test_drupal_alter_alter(), but here, we verify that themes * can also alter and come last. @@ -135,7 +135,7 @@ function garland_drupal_alter_alter(&$data, &$arg2 = NULL, &$arg3 = NULL) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function common_test_theme() { return array( @@ -153,7 +153,7 @@ function theme_common_test_foo($variables) { } /** - * Implementation of hook_library_alter(). + * Implements hook_library_alter(). */ function common_test_library_alter(&$libraries, $module) { if ($module == 'system' && isset($libraries['farbtastic'])) { @@ -165,7 +165,7 @@ function common_test_library_alter(&$libraries, $module) { } /** - * Implementation of hook_library(). + * Implements hook_library(). * * Adds Farbtastic in a different version. */ diff --git a/modules/simpletest/tests/database_test.install b/modules/simpletest/tests/database_test.install index b9fe61ab41e..4ecf74bc2db 100644 --- a/modules/simpletest/tests/database_test.install +++ b/modules/simpletest/tests/database_test.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). * * The database tests use the database API which depends on schema * information for certain operations on certain databases. diff --git a/modules/simpletest/tests/database_test.module b/modules/simpletest/tests/database_test.module index 4a6a95c074e..2aaa14824e5 100644 --- a/modules/simpletest/tests/database_test.module +++ b/modules/simpletest/tests/database_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_query_alter(). + * Implements hook_query_alter(). */ function database_test_query_alter(QueryAlterableInterface $query) { @@ -34,14 +34,16 @@ function database_test_query_alter(QueryAlterableInterface $query) { /** - * Implement hook_query_TAG_alter(). Called by DatabaseTestCase::testAlterRemoveRange. + * Implements hook_query_TAG_alter(). + * + * Called by DatabaseTestCase::testAlterRemoveRange. */ function database_test_query_database_test_alter_remove_range_alter(QueryAlterableInterface $query) { $query->range(); } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function database_test_menu() { $items['database_test/db_query_temporary'] = array( diff --git a/modules/simpletest/tests/error_test.module b/modules/simpletest/tests/error_test.module index c9a859dbec5..1e083043683 100644 --- a/modules/simpletest/tests/error_test.module +++ b/modules/simpletest/tests/error_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function error_test_menu() { $items['error-test/generate-warnings'] = array( diff --git a/modules/simpletest/tests/file_test.module b/modules/simpletest/tests/file_test.module index e9d4ce1f8d9..3832b22c385 100644 --- a/modules/simpletest/tests/file_test.module +++ b/modules/simpletest/tests/file_test.module @@ -15,7 +15,7 @@ define('FILE_URL_TEST_CDN_2', 'http://cdn2.example.com'); /** - * Implement hook_menu(). + * Implements hook_menu(). */ function file_test_menu() { $items['file-test/upload'] = array( @@ -29,7 +29,7 @@ function file_test_menu() { } /** - * Implement hook_stream_wrappers(). + * Implements hook_stream_wrappers(). */ function file_test_stream_wrappers() { return array( @@ -199,7 +199,7 @@ function file_test_set_return($op, $value) { } /** - * Implement hook_file_load(). + * Implements hook_file_load(). */ function file_test_file_load($files) { foreach ($files as $file) { @@ -211,7 +211,7 @@ function file_test_file_load($files) { } /** - * Implement hook_file_validate(). + * Implements hook_file_validate(). */ function file_test_file_validate($file) { _file_test_log_call('validate', array($file)); @@ -219,7 +219,7 @@ function file_test_file_validate($file) { } /** - * Implement hook_file_download(). + * Implements hook_file_download(). */ function file_test_file_download($uri) { _file_test_log_call('download', array($uri)); @@ -227,7 +227,7 @@ function file_test_file_download($uri) { } /** - * Implement hook_file_references(). + * Implements hook_file_references(). */ function file_test_file_references($file) { _file_test_log_call('references', array($file)); @@ -235,42 +235,42 @@ function file_test_file_references($file) { } /** - * Implement hook_file_insert(). + * Implements hook_file_insert(). */ function file_test_file_insert($file) { _file_test_log_call('insert', array($file)); } /** - * Implement hook_file_update(). + * Implements hook_file_update(). */ function file_test_file_update($file) { _file_test_log_call('update', array($file)); } /** - * Implement hook_file_copy(). + * Implements hook_file_copy(). */ function file_test_file_copy($file, $source) { _file_test_log_call('copy', array($file, $source)); } /** - * Implement hook_file_move(). + * Implements hook_file_move(). */ function file_test_file_move($file, $source) { _file_test_log_call('move', array($file, $source)); } /** - * Implement hook_file_delete(). + * Implements hook_file_delete(). */ function file_test_file_delete($file) { _file_test_log_call('delete', array($file)); } /** - * Implement hook_file_url_alter(). + * Implements hook_file_url_alter(). */ function file_test_file_url_alter(&$uri) { // Only run this hook when this variable is set. Otherwise, we'd have to add @@ -315,7 +315,7 @@ function file_test_file_url_alter(&$uri) { } /** - * Implementation of hook_file_mimetype_mapping_alter(). + * Implements hook_file_mimetype_mapping_alter(). */ function file_test_file_mimetype_mapping_alter(&$mapping) { // Add new mappings. diff --git a/modules/simpletest/tests/filter_test.module b/modules/simpletest/tests/filter_test.module index dcdbf79ad74..691d2231f3d 100644 --- a/modules/simpletest/tests/filter_test.module +++ b/modules/simpletest/tests/filter_test.module @@ -7,21 +7,21 @@ */ /** - * Implement hook_filter_format_insert(). + * Implements hook_filter_format_insert(). */ function filter_test_filter_format_insert($format) { drupal_set_message('hook_filter_format_insert invoked.'); } /** - * Implement hook_filter_format_update(). + * Implements hook_filter_format_update(). */ function filter_test_filter_format_update($format) { drupal_set_message('hook_filter_format_update invoked.'); } /** - * Implement hook_filter_format_delete(). + * Implements hook_filter_format_delete(). */ function filter_test_filter_format_delete($format, $default) { drupal_set_message('hook_filter_format_delete invoked.'); diff --git a/modules/simpletest/tests/form_test.module b/modules/simpletest/tests/form_test.module index c9c208d53c0..024917b861a 100644 --- a/modules/simpletest/tests/form_test.module +++ b/modules/simpletest/tests/form_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function form_test_menu() { $items['form-test/validate'] = array( diff --git a/modules/simpletest/tests/image_test.module b/modules/simpletest/tests/image_test.module index 69548573095..e5c3f0e42b5 100644 --- a/modules/simpletest/tests/image_test.module +++ b/modules/simpletest/tests/image_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_image_toolkits(). + * Implements hook_image_toolkits(). */ function image_test_image_toolkits() { return array( diff --git a/modules/simpletest/tests/menu_test.module b/modules/simpletest/tests/menu_test.module index df1c4978174..a8945178091 100644 --- a/modules/simpletest/tests/menu_test.module +++ b/modules/simpletest/tests/menu_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function menu_test_menu() { // The name of the menu changes during the course of the test. Using a $_GET. @@ -139,7 +139,7 @@ function menu_test_menu_name($new_name = '') { } /** - * Implement hook_menu_link_insert(). + * Implements hook_menu_link_insert(). * * @return * A random string. @@ -149,7 +149,7 @@ function menu_test_menu_link_insert($item) { } /** - * Implement hook_menu_link_update(). + * Implements hook_menu_link_update(). * * @return * A random string. @@ -159,7 +159,7 @@ function menu_test_menu_link_update($item) { } /** - * Implement hook_menu_link_delete(). + * Implements hook_menu_link_delete(). * * @return * A random string. diff --git a/modules/simpletest/tests/module_test.module b/modules/simpletest/tests/module_test.module index 331a9d9273b..d10a2935fdb 100644 --- a/modules/simpletest/tests/module_test.module +++ b/modules/simpletest/tests/module_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_permission(). + * Implements hook_permission(). */ function module_test_permission() { return array( diff --git a/modules/simpletest/tests/session_test.module b/modules/simpletest/tests/session_test.module index d479aba7198..bf6c302e2bc 100644 --- a/modules/simpletest/tests/session_test.module +++ b/modules/simpletest/tests/session_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function session_test_menu() { $items['session-test/get'] = array( @@ -54,7 +54,7 @@ function session_test_menu() { } /** - * Implement hook_boot(). + * Implements hook_boot(). */ function session_test_boot() { header('X-Session-Empty: ' . intval(empty($_SESSION))); @@ -133,7 +133,7 @@ function _session_test_set_not_started() { } /** - * Implement hook_user(). + * Implements hook_user(). */ function session_test_user_login($edit = array(), $user = NULL) { if ($user->name == 'session_test_user') { @@ -144,14 +144,14 @@ function session_test_user_login($edit = array(), $user = NULL) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function session_test_form_user_login_alter(&$form) { $form['#https'] = TRUE; } /** - * Implement hook_drupal_goto_alter(). + * Implements hook_drupal_goto_alter(). * * Force the redirection to go to a non-secure page after being on a secure * page through https.php. diff --git a/modules/simpletest/tests/system_test.module b/modules/simpletest/tests/system_test.module index 53080a86b08..213dd1fc0e5 100644 --- a/modules/simpletest/tests/system_test.module +++ b/modules/simpletest/tests/system_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function system_test_menu() { $items['admin/system-test/batch-theme'] = array( @@ -175,7 +175,7 @@ function system_test_destination() { } /** - * Implement hook_modules_installed(). + * Implements hook_modules_installed(). */ function system_test_modules_installed($modules) { if (in_array('aggregator', $modules)) { @@ -184,7 +184,7 @@ function system_test_modules_installed($modules) { } /** - * Implement hook_modules_enabled(). + * Implements hook_modules_enabled(). */ function system_test_modules_enabled($modules) { if (in_array('aggregator', $modules)) { @@ -193,7 +193,7 @@ function system_test_modules_enabled($modules) { } /** - * Implement hook_modules_disabled(). + * Implements hook_modules_disabled(). */ function system_test_modules_disabled($modules) { if (in_array('aggregator', $modules)) { @@ -202,7 +202,7 @@ function system_test_modules_disabled($modules) { } /** - * Implement hook_modules_uninstalled(). + * Implements hook_modules_uninstalled(). */ function system_test_modules_uninstalled($modules) { if (in_array('aggregator', $modules)) { @@ -211,14 +211,14 @@ function system_test_modules_uninstalled($modules) { } /** - * Implement hook_boot(). + * Implements hook_boot(). */ function system_test_boot() { watchdog('system_test', 'hook_boot'); } /** - * Implement hook_init(). + * Implements hook_init(). */ function system_test_init() { // Used by FrontPageTestCase to get the results of drupal_is_front_page(). @@ -228,14 +228,14 @@ function system_test_init() { } /** - * Implement hook_exit(). + * Implements hook_exit(). */ function system_test_exit() { watchdog('system_test', 'hook_exit'); } /** - * Implement hook_system_info_alter(). + * Implements hook_system_info_alter(). */ function system_test_system_info_alter(&$info, $file, $type) { // We need a static otherwise the last test will fail to alter common_test. @@ -282,7 +282,7 @@ function system_test_lock_exit() { } /** - * Implement hook_page_build(). + * Implements hook_page_build(). */ function system_test_page_build(&$page) { $menu_item = menu_get_item(); diff --git a/modules/simpletest/tests/taxonomy_test.install b/modules/simpletest/tests/taxonomy_test.install index c4a568da42d..420be1b7885 100644 --- a/modules/simpletest/tests/taxonomy_test.install +++ b/modules/simpletest/tests/taxonomy_test.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function taxonomy_test_schema() { $schema['taxonomy_term_antonym'] = array( diff --git a/modules/simpletest/tests/taxonomy_test.module b/modules/simpletest/tests/taxonomy_test.module index fd34f9cafb6..d524fb87c8d 100644 --- a/modules/simpletest/tests/taxonomy_test.module +++ b/modules/simpletest/tests/taxonomy_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_taxonomy_term_load(). + * Implements hook_taxonomy_term_load(). */ function taxonomy_test_taxonomy_term_load($terms) { foreach ($terms as $term) { @@ -19,7 +19,7 @@ function taxonomy_test_taxonomy_term_load($terms) { } /** - * Implement hook_taxonomy_term_insert(). + * Implements hook_taxonomy_term_insert(). */ function taxonomy_test_taxonomy_term_insert($term) { if (!empty($term->antonym)) { @@ -33,7 +33,7 @@ function taxonomy_test_taxonomy_term_insert($term) { } /** - * Implement hook_taxonomy_term_update(). + * Implements hook_taxonomy_term_update(). */ function taxonomy_test_taxonomy_term_update($term) { if (!empty($term->antonym)) { @@ -47,7 +47,7 @@ function taxonomy_test_taxonomy_term_update($term) { } /** - * Implement hook_taxonomy_term_delete(). + * Implements hook_taxonomy_term_delete(). */ function taxonomy_test_taxonomy_term_delete($term) { db_delete('taxonomy_term_antonym') @@ -56,7 +56,7 @@ function taxonomy_test_taxonomy_term_delete($term) { } /** - * Implement hook_form_alter(). + * Implements hook_form_alter(). */ function taxonomy_test_form_alter(&$form, $form_state, $form_id) { if ($form_id == 'taxonomy_form_term') { diff --git a/modules/simpletest/tests/url_alter_test.module b/modules/simpletest/tests/url_alter_test.module index a6841ae393e..2734d8caa64 100644 --- a/modules/simpletest/tests/url_alter_test.module +++ b/modules/simpletest/tests/url_alter_test.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_url_inbound_alter(). + * Implements hook_url_inbound_alter(). */ function url_alter_test_url_inbound_alter(&$path, $original_path, $path_language) { // Rewrite user/username to user/uid. @@ -25,7 +25,7 @@ function url_alter_test_url_inbound_alter(&$path, $original_path, $path_language } /** - * Implement hook_url_outbound_alter(). + * Implements hook_url_outbound_alter(). */ function url_alter_test_url_outbound_alter(&$path, &$options, $original_path) { // Rewrite user/uid to user/username. diff --git a/modules/simpletest/tests/xmlrpc_test.module b/modules/simpletest/tests/xmlrpc_test.module index d776fdec1f3..98f3f4f517d 100644 --- a/modules/simpletest/tests/xmlrpc_test.module +++ b/modules/simpletest/tests/xmlrpc_test.module @@ -47,7 +47,7 @@ function xmlrpc_test_simpleStructReturnTest($number) { } /** - * Implement hook_xmlrpc() + * Implements hook_xmlrpc(). */ function xmlrpc_test_xmlrpc() { return array( diff --git a/modules/statistics/statistics.install b/modules/statistics/statistics.install index c681532f90f..38af02dbc15 100644 --- a/modules/statistics/statistics.install +++ b/modules/statistics/statistics.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function statistics_uninstall() { // Remove variables. @@ -21,7 +21,7 @@ function statistics_uninstall() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function statistics_schema() { $schema['accesslog'] = array( diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module index 44c332c4527..2a494bfff8d 100644 --- a/modules/statistics/statistics.module +++ b/modules/statistics/statistics.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function statistics_help($path, $arg) { switch ($path) { @@ -44,7 +44,7 @@ function statistics_help($path, $arg) { /** - * Implement hook_exit(). + * Implements hook_exit(). * * This is where statistics are gathered on page accesses. */ @@ -87,7 +87,7 @@ function statistics_exit() { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function statistics_permission() { return array( @@ -104,7 +104,7 @@ function statistics_permission() { } /** - * Implement hook_node_view(). + * Implements hook_node_view(). */ function statistics_node_view($node, $build_mode) { if ($build_mode != 'rss') { @@ -125,7 +125,7 @@ function statistics_node_view($node, $build_mode) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function statistics_menu() { $items['admin/reports/hits'] = array( @@ -198,7 +198,7 @@ function statistics_menu() { } /** - * Implement hook_user_cancel(). + * Implements hook_user_cancel(). */ function statistics_user_cancel($edit, $account, $method) { switch ($method) { @@ -218,7 +218,7 @@ function statistics_user_cancel($edit, $account, $method) { } /** - * Implement hook_cron(). + * Implements hook_cron(). */ function statistics_cron() { $statistics_timestamp = variable_get('statistics_day_timestamp', ''); @@ -297,7 +297,7 @@ function statistics_get($nid) { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function statistics_block_info() { if (variable_get('statistics_count_content_views', 0)) { @@ -309,7 +309,7 @@ function statistics_block_info() { } /** - * Implement hook_block_configure(). + * Implements hook_block_configure(). */ function statistics_block_configure($delta = '') { // Popular content block settings @@ -321,7 +321,7 @@ function statistics_block_configure($delta = '') { } /** - * Implement hook_block_save(). + * Implements hook_block_save(). */ function statistics_block_save($delta = '', $edit = array()) { variable_set('statistics_block_top_day_num', $edit['statistics_block_top_day_num']); @@ -330,7 +330,7 @@ function statistics_block_save($delta = '', $edit = array()) { } /** - * Implement hook_block_view(). + * Implements hook_block_view(). */ function statistics_block_view($delta = '') { if (user_access('access content')) { @@ -377,7 +377,7 @@ function _statistics_format_item($title, $path) { } /** - * Implement hook_node_delete(). + * Implements hook_node_delete(). */ function statistics_node_delete($node) { // clean up statistics table when node is deleted @@ -387,7 +387,7 @@ function statistics_node_delete($node) { } /** - * Implement hook_ranking(). + * Implements hook_ranking(). */ function statistics_ranking() { if (variable_get('statistics_count_content_views', 0)) { @@ -409,7 +409,7 @@ function statistics_ranking() { } /** - * Implement hook_update_index(). + * Implements hook_update_index(). */ function statistics_update_index() { variable_set('node_cron_views_scale', 1.0 / max(1, db_query('SELECT MAX(totalcount) FROM {node_counter}')->fetchField())); diff --git a/modules/statistics/statistics.tokens.inc b/modules/statistics/statistics.tokens.inc index b0345f7c82a..5261c4b1620 100644 --- a/modules/statistics/statistics.tokens.inc +++ b/modules/statistics/statistics.tokens.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_token_info(). + * Implements hook_token_info(). */ function statistics_token_info() { $node['views'] = array( @@ -30,7 +30,7 @@ function statistics_token_info() { } /** - * Implement hook_tokens(). + * Implements hook_tokens(). */ function statistics_tokens($type, $tokens, array $data = array(), array $options = array()) { $url_options = array('absolute' => TRUE); diff --git a/modules/syslog/syslog.module b/modules/syslog/syslog.module index 1bbaf2047e2..87b406bdd36 100644 --- a/modules/syslog/syslog.module +++ b/modules/syslog/syslog.module @@ -14,7 +14,7 @@ else { } /** - * Implement hook_help(). + * Implements hook_help(). */ function syslog_help($path, $arg) { switch ($path) { @@ -34,7 +34,7 @@ function syslog_help($path, $arg) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function syslog_form_system_logging_settings_alter(&$form, &$form_state) { if (defined('LOG_LOCAL0')) { @@ -69,7 +69,7 @@ function syslog_facility_list() { } /** - * Implement hook_watchdog(). + * Implements hook_watchdog(). */ function syslog_watchdog(array $log_entry) { $log_init = &drupal_static(__FUNCTION__, FALSE); diff --git a/modules/system/system.install b/modules/system/system.install index 0558bd42682..86f8f8617f8 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -332,7 +332,7 @@ function system_requirements($phase) { } /** - * Implement hook_install(). + * Implements hook_install(). */ function system_install() { // Create tables. @@ -423,7 +423,7 @@ function system_install() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function system_schema() { // NOTE: {variable} needs to be created before all other tables, as diff --git a/modules/system/system.module b/modules/system/system.module index 9e0d24524ce..aacd5a35cac 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -57,7 +57,7 @@ define('REGIONS_VISIBLE', 'visible'); define('REGIONS_ALL', 'all'); /** - * Implement hook_help(). + * Implements hook_help(). */ function system_help($path, $arg) { global $base_url; @@ -138,7 +138,7 @@ function system_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function system_theme() { return array_merge(drupal_common_theme(), array( @@ -201,7 +201,7 @@ function system_theme() { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function system_permission() { return array( @@ -243,7 +243,7 @@ function system_permission() { } /** - * Implement hook_rdf_namespaces(). + * Implements hook_rdf_namespaces(). */ function system_rdf_namespaces() { return array( @@ -265,7 +265,7 @@ function system_rdf_namespaces() { } /** - * Implement hook_hook_info(). + * Implements hook_hook_info(). */ function system_hook_info() { $hooks['token_info'] = array( @@ -278,7 +278,7 @@ function system_hook_info() { } /** - * Implement hook_entity_info(). + * Implements hook_entity_info(). */ function system_entity_info() { return array( @@ -294,7 +294,7 @@ function system_entity_info() { } /** - * Implement hook_element_info(). + * Implements hook_element_info(). */ function system_element_info() { // Top level elements. @@ -501,7 +501,7 @@ function system_element_info() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function system_menu() { $items['system/files'] = array( @@ -1059,7 +1059,7 @@ function _system_batch_theme() { } /** - * Implementation of hook_library(). + * Implements hook_library(). */ function system_library() { // jQuery. @@ -1458,7 +1458,7 @@ function system_library() { } /** - * Implement hook_stream_wrappers(). + * Implements hook_stream_wrappers(). */ function system_stream_wrappers() { return array( @@ -1626,7 +1626,7 @@ function system_authorized_batch_process() { */ /** - * Implement hook_updater_info(). + * Implements hook_updater_info(). */ function system_updater_info() { return array( @@ -1644,7 +1644,7 @@ function system_updater_info() { } /** - * Implement hook_filetransfer_backends(). + * Implements hook_filetransfer_backends(). */ function system_filetransfer_backends() { $backends = array(); @@ -1745,7 +1745,7 @@ function _system_filetransfer_backend_form_common() { } /** - * Implement hook_init(). + * Implements hook_init(). */ function system_init() { // Add the CSS for this module. @@ -1781,7 +1781,7 @@ function system_init() { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function system_form_user_profile_form_alter(&$form, &$form_state) { if ($form['#user_category'] == 'account') { @@ -1793,7 +1793,7 @@ function system_form_user_profile_form_alter(&$form, &$form_state) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function system_form_user_register_form_alter(&$form, &$form_state) { if (variable_get('configurable_timezones', 1)) { @@ -1811,7 +1811,7 @@ function system_form_user_register_form_alter(&$form, &$form_state) { } /** - * Implement hook_user_login(). + * Implements hook_user_login(). */ function system_user_login(&$edit, $account) { // If the user has a NULL time zone, notify them to set a time zone. @@ -1849,7 +1849,7 @@ function system_user_timezone(&$form, &$form_state) { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function system_block_info() { $blocks['main'] = array( @@ -1877,7 +1877,7 @@ function system_block_info() { } /** - * Implement hook_block_view(). + * Implements hook_block_view(). * * Generate a block with a promotional link to Drupal.org and * all system menu blocks. @@ -2441,7 +2441,7 @@ function system_region_list($theme_key, $show = REGIONS_ALL) { } /** - * Implement hook_system_info_alter(). + * Implements hook_system_info_alter(). */ function system_system_info_alter(&$info, $file, $type) { // Remove page-top from the blocks UI since it is reserved for modules to @@ -2682,7 +2682,7 @@ function system_get_module_admin_tasks($module) { } /** - * Implement hook_cron(). + * Implements hook_cron(). * * Remove older rows from flood and batch table. Remove old temporary files. */ @@ -2737,7 +2737,7 @@ function system_flush_caches() { } /** - * Implement hook_action_info(). + * Implements hook_action_info(). */ function system_action_info() { return array( @@ -2843,7 +2843,7 @@ function system_send_email_action_submit($form, $form_state) { } /** - * Implement a configurable Drupal action. Sends an email. + * Implements a configurable Drupal action: sends an email. */ function system_send_email_action($object, $context) { if (empty($context['node'])) { @@ -2864,7 +2864,7 @@ function system_send_email_action($object, $context) { } /** - * Implement hook_mail(). + * Implements hook_mail(). */ function system_mail($key, &$message, $params) { $context = $params['context']; @@ -2905,7 +2905,7 @@ function system_message_action(&$object, $context = array()) { } /** - * Implement a configurable Drupal action. Redirect user to a URL. + * Implements a configurable Drupal action: redirect user to a URL. */ function system_goto_action_form($context) { $form['url'] = array( @@ -2929,8 +2929,7 @@ function system_goto_action($object, $context) { } /** - * Implement a Drupal action. - * Blocks the user's IP address. + * Implements a Drupal action: blocks the user's IP address. */ function system_block_ip_action() { $ip = ip_address(); @@ -3021,7 +3020,7 @@ function theme_system_compact_link() { } /** - * Implement hook_image_toolkits(). + * Implements hook_image_toolkits(). */ function system_image_toolkits() { include_once DRUPAL_ROOT . '/' . drupal_get_path('module', 'system') . '/' . 'image.gd.inc'; @@ -3072,7 +3071,7 @@ function system_retrieve_file($url, $destination = NULL, $overwrite = TRUE) { } /** - * Implement hook_page_build(). + * Implements hook_page_build(). */ function system_page_build(&$page) { // Automatic cron runs. @@ -3327,7 +3326,7 @@ function system_date_format_locale($langcode = NULL, $type = NULL) { function _system_date_format_types_build() { $types = array(); - // Get list of modules which implement hook_date_format_types(). + // Get list of modules that implement hook_date_format_types(). $modules = module_implements('date_format_types'); foreach ($modules as $module) { @@ -3539,7 +3538,7 @@ function system_date_format_delete($dfid) { } /** - * Implement hook_archiver_info(). + * Implements hook_archiver_info(). */ function system_archiver_info() { return array( @@ -3685,7 +3684,7 @@ function system_build_contextual_links($element) { } /** - * Implement hook_admin_paths(). + * Implements hook_admin_paths(). */ function system_admin_paths() { $paths = array( diff --git a/modules/system/system.tokens.inc b/modules/system/system.tokens.inc index f7f27d05707..876648fb46f 100644 --- a/modules/system/system.tokens.inc +++ b/modules/system/system.tokens.inc @@ -10,7 +10,7 @@ */ /** - * Implement hook_token_info(). + * Implements hook_token_info(). */ function system_token_info() { $types['site'] = array( @@ -148,7 +148,7 @@ function system_token_info() { } /** - * Implement hook_tokens(). + * Implements hook_tokens(). */ function system_tokens($type, $tokens, array $data = array(), array $options = array()) { $url_options = array('absolute' => TRUE); diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install index f641549e994..024ce1bfc02 100644 --- a/modules/taxonomy/taxonomy.install +++ b/modules/taxonomy/taxonomy.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function taxonomy_uninstall() { // Remove variables. @@ -16,7 +16,7 @@ function taxonomy_uninstall() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function taxonomy_schema() { $schema['taxonomy_term_data'] = array( diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 83c71e06eae..4cc5de73767 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function taxonomy_help($path, $arg) { switch ($path) { @@ -57,7 +57,7 @@ function taxonomy_help($path, $arg) { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function taxonomy_permission() { $permissions = array( @@ -81,7 +81,7 @@ function taxonomy_permission() { } /** - * Implement hook_entity_info(). + * Implements hook_entity_info(). */ function taxonomy_entity_info() { $return = array( @@ -179,7 +179,7 @@ function taxonomy_select_nodes($tid, $pager = TRUE, $limit = FALSE, $order = arr } /** - * Implement hook_field_build_modes(); + * Implements hook_field_build_modes(). * * @TODO: build mode for display as a field (when attached to nodes etc.). */ @@ -194,7 +194,7 @@ function taxonomy_field_build_modes($obj_type) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function taxonomy_theme() { return array( @@ -208,7 +208,7 @@ function taxonomy_theme() { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function taxonomy_menu() { $items['admin/structure/taxonomy'] = array( @@ -931,7 +931,7 @@ function _taxonomy_get_tid_from_term($term) { } /** - * Implode a list of tags of a certain vocabulary into a string. + * Implodes a list of tags of a certain vocabulary into a string. */ function taxonomy_implode_tags($tags, $vid = NULL) { $typed_tags = array(); @@ -951,7 +951,7 @@ function taxonomy_implode_tags($tags, $vid = NULL) { } /** - * Implement hook_field_info(). + * Implements hook_field_info(). * * Field settings: * - allowed_values: a list array of one or more vocabulary trees: @@ -981,7 +981,7 @@ function taxonomy_field_info() { } /** - * Implement hook_field_widget_info(). + * Implements hook_field_widget_info(). * * We need custom handling of multiple values because we need * to combine them into a options list rather than display @@ -1010,7 +1010,7 @@ function taxonomy_field_widget_info() { } /** - * Implement hook_field_widget_info_alter(). + * Implements hook_field_widget_info_alter(). */ function taxonomy_field_widget_info_alter(&$info) { $info['options_select']['field types'][] = 'taxonomy_term'; @@ -1018,7 +1018,7 @@ function taxonomy_field_widget_info_alter(&$info) { } /** - * Implement hook_field_schema(). + * Implements hook_field_schema(). */ function taxonomy_field_schema($field) { return array( @@ -1036,7 +1036,7 @@ function taxonomy_field_schema($field) { } /** - * Implement hook_field_validate(). + * Implements hook_field_validate(). * * Possible error codes: * - 'taxonomy_term_illegal_value': The value is not part of the list of allowed values. @@ -1069,7 +1069,7 @@ function taxonomy_field_validate($obj_type, $object, $field, $instance, $langcod } /** - * Implement hook_field_is_empty(). + * Implements hook_field_is_empty(). */ function taxonomy_field_is_empty($item, $field) { if (!is_array($item) || (empty($item['tid']) && (string) $item['tid'] !== '0')) { @@ -1079,7 +1079,7 @@ function taxonomy_field_is_empty($item, $field) { } /** - * Implement hook_field_formatter_info(). + * Implements hook_field_formatter_info(). */ function taxonomy_field_formatter_info() { return array( @@ -1139,7 +1139,7 @@ function taxonomy_allowed_values($field) { } /** - * Implement hook_field_load(). + * Implements hook_field_load(). * * This preloads all taxonomy terms for multiple loaded objects at once and * unsets values for invalid terms that do not exist. @@ -1229,7 +1229,7 @@ function taxonomy_term_title($term) { } /** - * Implement hook_field_widget(). + * Implements hook_field_widget(). */ function taxonomy_field_widget(&$form, &$form_state, $field, $instance, $langcode, $items, $delta, $element) { $tags = array(); @@ -1292,14 +1292,14 @@ function taxonomy_autocomplete_validate($element, &$form_state) { } /** - * Implement hook_field_widget_error(). + * Implements hook_field_widget_error(). */ function taxonomy_field_widget_error($element, $error) { form_error($element, $error['message']); } /** - * Implement hook_field_settings_form(). + * Implements hook_field_settings_form(). */ function taxonomy_field_settings_form($field, $instance, $has_data) { // Get proper values for 'allowed_values_function', which is a core setting. @@ -1332,7 +1332,7 @@ function taxonomy_field_settings_form($field, $instance, $has_data) { } /** - * Implement hook_rdf_mapping(). + * Implements hook_rdf_mapping(). * * @return array * The rdf mapping for vocabularies and terms. @@ -1390,7 +1390,7 @@ function taxonomy_rdf_mapping() { */ /** - * Implement hook_field_insert(). + * Implements hook_field_insert(). */ function taxonomy_field_insert($obj_type, $object, $field, $instance, $langcode, &$items) { // We maintain a denormalized table of term/node relationships, containing @@ -1410,7 +1410,7 @@ function taxonomy_field_insert($obj_type, $object, $field, $instance, $langcode, } /** - * Implement hook_field_update(). + * Implements hook_field_update(). */ function taxonomy_field_update($obj_type, $object, $field, $instance, $langcode, &$items) { if (variable_get('taxonomy_maintain_index_table', TRUE) && $field['storage']['type'] == 'field_sql_storage' && $obj_type = 'node') { @@ -1440,7 +1440,7 @@ function taxonomy_field_update($obj_type, $object, $field, $instance, $langcode, } /** - * Implement hook_node_delete(). + * Implements hook_node_delete(). */ function taxonomy_node_delete($node) { if (variable_get('taxonomy_maintain_index_table', TRUE)) { @@ -1450,7 +1450,7 @@ function taxonomy_node_delete($node) { } /** - * Implement hook_taxonomy_term_delete(). + * Implements hook_taxonomy_term_delete(). */ function taxonomy_taxonomy_term_delete($term) { if (variable_get('taxonomy_maintain_index_table', TRUE)) { diff --git a/modules/taxonomy/taxonomy.tokens.inc b/modules/taxonomy/taxonomy.tokens.inc index 1e30f2bc297..ae9a7f2de33 100644 --- a/modules/taxonomy/taxonomy.tokens.inc +++ b/modules/taxonomy/taxonomy.tokens.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_token_info(). + * Implements hook_token_info(). */ function taxonomy_token_info() { $types['term'] = array( @@ -91,7 +91,7 @@ function taxonomy_token_info() { } /** - * Implement hook_tokens(). + * Implements hook_tokens(). */ function taxonomy_tokens($type, $tokens, array $data = array(), array $options = array()) { $replacements = array(); diff --git a/modules/toolbar/toolbar.module b/modules/toolbar/toolbar.module index 3c3667fdee5..5543f8b3a81 100644 --- a/modules/toolbar/toolbar.module +++ b/modules/toolbar/toolbar.module @@ -24,7 +24,7 @@ function toolbar_help($path, $arg) { } /** - * Implementation of hook_permission(). + * Implements hook_permission(). */ function toolbar_permission() { return array( @@ -35,7 +35,7 @@ function toolbar_permission() { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function toolbar_theme($existing, $type, $theme, $path) { $items['toolbar'] = array( @@ -53,7 +53,7 @@ function toolbar_theme($existing, $type, $theme, $path) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function toolbar_menu() { $items['toolbar/toggle'] = array( @@ -113,7 +113,7 @@ function _toolbar_is_collapsed() { } /** - * Implement hook_page_build(). + * Implements hook_page_build(). * * Add admin toolbar to the page_top region automatically. */ @@ -137,7 +137,7 @@ function toolbar_pre_render($toolbar) { } /** - * Implement hook_preprocess_html(). + * Implements hook_preprocess_html(). * * Add some page classes, so global page theming can adjust to the toolbar. */ diff --git a/modules/tracker/tracker.install b/modules/tracker/tracker.install index 7e997a01ef7..5d8f86fb771 100644 --- a/modules/tracker/tracker.install +++ b/modules/tracker/tracker.install @@ -2,14 +2,14 @@ // $Id$ /** - * Implement hook_install(). + * Implements hook_install(). */ function tracker_install() { drupal_install_schema('tracker'); } /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function tracker_uninstall() { drupal_uninstall_schema('tracker'); @@ -19,7 +19,7 @@ function tracker_uninstall() { } /** - * Implement hook_enable(). + * Implements hook_enable(). */ function tracker_enable() { $max_nid = db_query('SELECT MAX(nid) FROM {node}')->fetchField(); @@ -32,7 +32,7 @@ function tracker_enable() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function tracker_schema() { $schema['tracker_node'] = array( diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index 8b011ed6685..5aebccc6f48 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -7,7 +7,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function tracker_help($path, $arg) { switch ($path) { @@ -28,7 +28,7 @@ function tracker_help($path, $arg) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function tracker_menu() { $items['tracker'] = array( @@ -70,7 +70,7 @@ function tracker_menu() { } /** - * Implement hook_cron(). + * Implements hook_cron(). */ function tracker_cron() { $max_nid = variable_get('tracker_index_nid', 0); @@ -164,28 +164,28 @@ function _tracker_user_access($account) { } /** - * Implement hook_nodeapi_insert(). + * Implements hook_nodeapi_insert(). */ function tracker_node_insert($node, $arg = 0) { _tracker_add($node->nid, $node->uid, $node->changed); } /** - * Implement hook_nodeapi_update(). + * Implements hook_nodeapi_update(). */ function tracker_node_update($node, $arg = 0) { _tracker_add($node->nid, $node->uid, $node->changed); } /** - * Implement hook_nodeapi_delete(). + * Implements hook_nodeapi_delete(). */ function tracker_node_delete($node, $arg = 0) { _tracker_remove($node->nid, $node->uid, $node->changed); } /** - * Implement hook_comment_update(). + * Implements hook_comment_update(). * * Comment module doesn't call hook_comment_unpublish() when saving individual * comments so we need to check for those here. @@ -199,7 +199,7 @@ function tracker_comment_update($comment) { } /** - * Implement hook_comment_publish(). + * Implements hook_comment_publish(). * * This actually handles the insert and update of published nodes since * comment_save() calls hook_comment_publish() for all published comments. @@ -209,14 +209,14 @@ function tracker_comment_publish($comment) { } /** - * Implement hook_comment_unpublish(). + * Implements hook_comment_unpublish(). */ function tracker_comment_unpublish($comment) { _tracker_remove($comment->nid, $comment->uid, $comment->changed); } /** - * Implement hook_comment_delete(). + * Implements hook_comment_delete(). */ function tracker_comment_delete($comment) { _tracker_remove($comment->nid, $comment->uid, $comment->changed); diff --git a/modules/translation/translation.module b/modules/translation/translation.module index 9b81669424e..ba2a777c1fe 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -26,7 +26,7 @@ define('TRANSLATION_ENABLED', 2); /** - * Implement hook_help(). + * Implements hook_help(). */ function translation_help($path, $arg) { switch ($path) { @@ -51,7 +51,7 @@ function translation_help($path, $arg) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function translation_menu() { $items = array(); @@ -83,7 +83,7 @@ function _translation_tab_access($node) { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function translation_permission() { return array( @@ -94,7 +94,7 @@ function translation_permission() { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). */ function translation_form_node_type_form_alter(&$form, &$form_state) { // Add translation option to content type form. @@ -104,7 +104,7 @@ function translation_form_node_type_form_alter(&$form, &$form_state) { } /** - * Implement hook_form_alter(). + * Implements hook_form_alter(). * * - Add translation option to content type form. * - Alters language fields on node forms when a translation @@ -162,7 +162,7 @@ function translation_form_alter(&$form, &$form_state, $form_id) { } /** - * Implement hook_node_view(). + * Implements hook_node_view(). * * Display translation links with native language names, if this node * is part of a translation set. @@ -185,7 +185,7 @@ function translation_node_view($node, $build_mode) { } /** - * Implement hook_node_prepare(). + * Implements hook_node_prepare(). */ function translation_node_prepare($node) { // Only act if we are dealing with a content type supporting translations. @@ -215,7 +215,7 @@ function translation_node_prepare($node) { } /** - * Implement hook_node_insert(). + * Implements hook_node_insert(). */ function translation_node_insert($node) { // Only act if we are dealing with a content type supporting translations. @@ -248,7 +248,7 @@ function translation_node_insert($node) { } /** - * Implement hook_node_update(). + * Implements hook_node_update(). */ function translation_node_update($node) { // Only act if we are dealing with a content type supporting translations. @@ -275,7 +275,7 @@ function translation_node_update($node) { } /** - * Implement hook_node_validate(). + * Implements hook_node_validate(). * * Ensure that duplicate translations can not be created for the same source. */ @@ -291,7 +291,7 @@ function translation_node_validate($node, $form) { } /** - * Implement hook_node_delete(). + * Implements hook_node_delete(). */ function translation_node_delete($node) { // Only act if we are dealing with a content type supporting translations. @@ -400,7 +400,7 @@ function translation_path_get_translations($path) { } /** - * Implement hook_language_switch_link_alter(). + * Implements hook_language_switch_link_alter(). * * Replaces links with pointers to translated versions of the content. */ diff --git a/modules/trigger/tests/trigger_test.module b/modules/trigger/tests/trigger_test.module index 028f64b7d90..ad7c4ec0ed6 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 d174326158d..e34c66c2791 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 0dc6b0f6fd0..644be05dd81 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 = '

' . 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 Actions settings page contains a list of existing actions and provides the ability to create and configure additional actions.', array('@url' => url('admin/config/system/actions'))) . '

'; @@ -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. */ diff --git a/modules/update/tests/update_test.module b/modules/update/tests/update_test.module index 4ae4bccf911..252edb361de 100644 --- a/modules/update/tests/update_test.module +++ b/modules/update/tests/update_test.module @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_menu(). + * Implements hook_menu(). */ function update_test_menu() { $items = array(); @@ -18,7 +18,7 @@ function update_test_menu() { } /** - * Implement hook_system_info_alter(). + * Implements hook_system_info_alter(). * * This checks the 'update_test_system_info' variable and sees if we need to * alter the system info for the given $file based on the setting. The setting diff --git a/modules/update/update.install b/modules/update/update.install index 66db2278b21..eb873ecb7ab 100644 --- a/modules/update/update.install +++ b/modules/update/update.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_install(). + * Implements hook_install(). */ function update_install() { $queue = DrupalQueue::get('update_fetch_tasks'); @@ -15,7 +15,7 @@ function update_install() { } /** - * Implement hook_uninstall(). + * Implements hook_uninstall(). */ function update_uninstall() { // Clear any variables that might be in use @@ -37,7 +37,7 @@ function update_uninstall() { } /** - * Implement hook_schema(). + * Implements hook_schema(). */ function update_schema() { $schema['cache_update'] = drupal_get_schema_unprocessed('system', 'cache'); diff --git a/modules/update/update.module b/modules/update/update.module index aa153ced69c..83c0ae3f060 100644 --- a/modules/update/update.module +++ b/modules/update/update.module @@ -72,7 +72,7 @@ define('UPDATE_MAX_FETCH_ATTEMPTS', 2); define('UPDATE_MAX_FETCH_TIME', 5); /** - * Implement hook_help(). + * Implements hook_help(). */ function update_help($path, $arg) { switch ($path) { @@ -150,7 +150,7 @@ function update_help($path, $arg) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function update_menu() { $items = array(); @@ -253,7 +253,7 @@ function update_manager_access() { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function update_theme() { return array( @@ -277,7 +277,7 @@ function update_theme() { } /** - * Implement hook_requirements(). + * Implements hook_requirements(). * * @return * An array describing the status of the site regarding available updates. @@ -391,7 +391,7 @@ function _update_requirement_check($project, $type) { } /** - * Implement hook_cron(). + * Implements hook_cron(). */ function update_cron() { $frequency = variable_get('update_check_frequency', 1); @@ -411,7 +411,7 @@ function update_cron() { } /** - * Implement hook_themes_enabled(). + * Implements hook_themes_enabled(). * * If themes are enabled, we invalidate the cache of available updates. */ @@ -421,7 +421,7 @@ function update_themes_enabled($themes) { } /** - * Implement hook_themes_disabled(). + * Implements hook_themes_disabled(). * * If themes are disabled, we invalidate the cache of available updates. */ @@ -431,7 +431,7 @@ function update_themes_disabled($themes) { } /** - * Implement hook_form_FORM_ID_alter(). + * Implements hook_form_FORM_ID_alter(). * * Adds a submit handler to the system modules form, so that if a site admin * saves the form, we invalidate the cache of available updates. @@ -583,7 +583,7 @@ function _update_get_cached_available_releases() { } /** - * Implement hook_mail(). + * Implements hook_mail(). * * Constructs the email notification message when the site is out of date. * @@ -871,7 +871,7 @@ function _update_cache_clear($cid = NULL, $wildcard = FALSE) { } /** - * Implement hook_flush_caches(). + * Implements hook_flush_caches(). * * Called from update.php (among others) to flush the caches. * Since we're running update.php, we are likely to install a new version of diff --git a/modules/upload/upload.install b/modules/upload/upload.install index 26924f050bf..0e4637eeee2 100644 --- a/modules/upload/upload.install +++ b/modules/upload/upload.install @@ -12,7 +12,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function upload_schema() { $schema['upload'] = array( diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 2c952abd26b..12feedac061 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -8,7 +8,7 @@ */ /** - * Implement hook_help(). + * Implements hook_help(). */ function upload_help($path, $arg) { switch ($path) { @@ -23,7 +23,7 @@ function upload_help($path, $arg) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function upload_theme() { return array( @@ -40,7 +40,7 @@ function upload_theme() { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function upload_permission() { return array( @@ -82,7 +82,7 @@ function upload_node_links($node, $build_mode) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function upload_menu() { $items['upload/js'] = array( @@ -146,7 +146,7 @@ function _upload_file_limits($user) { } /** - * Implement hook_file_download(). + * Implements hook_file_download(). */ function upload_file_download($uri) { $file = db_query("SELECT f.*, u.nid FROM {file} f INNER JOIN {upload} u ON f.fid = u.fid WHERE uri = :uri", array(':uri' => $uri))->fetchObject(); @@ -262,7 +262,7 @@ function upload_form_alter(&$form, &$form_state, $form_id) { } /** - * Implement hook_file_load(). + * Implements hook_file_load(). */ function upload_file_load($files) { // Add the upload specific data into the file object. @@ -275,7 +275,7 @@ function upload_file_load($files) { } /** - * Implement hook_file_references(). + * Implements hook_file_references(). */ function upload_file_references($file) { // If upload.module is still using a file, do not let other modules delete it. @@ -287,7 +287,7 @@ function upload_file_references($file) { } /** - * Implement hook_file_delete(). + * Implements hook_file_delete(). */ function upload_file_delete($file) { // Delete all information associated with the file. @@ -295,7 +295,7 @@ function upload_file_delete($file) { } /** - * Implement hook_node_load(). + * Implements hook_node_load(). */ function upload_node_load($nodes, $types) { // Collect all the revision ids for nodes with upload enabled. @@ -333,7 +333,7 @@ function upload_node_load($nodes, $types) { } /** - * Implement hook_node_view(). + * Implements hook_node_view(). */ function upload_node_view($node, $build_mode) { if (!isset($node->files)) { @@ -379,7 +379,7 @@ function upload_node_view($node, $build_mode) { } /** - * Implement hook_node_insert(). + * Implements hook_node_insert(). */ function upload_node_insert($node) { if (user_access('upload files')) { @@ -388,7 +388,7 @@ function upload_node_insert($node) { } /** - * Implement hook_node_update(). + * Implements hook_node_update(). */ function upload_node_update($node) { if (user_access('upload files')) { @@ -397,7 +397,7 @@ function upload_node_update($node) { } /** - * Implement hook_node_delete(). + * Implements hook_node_delete(). */ function upload_node_delete($node) { db_delete('upload')->condition('nid', $node->nid)->execute(); @@ -410,7 +410,7 @@ function upload_node_delete($node) { } /** - * Implement hook_node_revision_delete(). + * Implements hook_node_revision_delete(). */ function upload_node_revision_delete($node) { db_delete('upload')->condition('vid', $node->vid)->execute(); @@ -423,7 +423,7 @@ function upload_node_revision_delete($node) { } /** - * Implement hook_node_search_result(). + * Implements hook_node_search_result(). */ function upload_node_search_result($node) { return isset($node->files) && is_array($node->files) ? format_plural(count($node->files), '1 attachment', '@count attachments') : NULL; diff --git a/modules/upload/upload.tokens.inc b/modules/upload/upload.tokens.inc index 92c18367a92..3fa28ee2d67 100644 --- a/modules/upload/upload.tokens.inc +++ b/modules/upload/upload.tokens.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_token_info(). + * Implements hook_token_info(). */ function upload_token_info() { $results['tokens']['node'] = array( @@ -21,7 +21,7 @@ function upload_token_info() { } /** - * Implement hook_tokens(). + * Implements hook_tokens(). */ function upload_tokens($type, $tokens, array $data = array(), array $options = array()) { $replacements = array(); diff --git a/modules/user/user.install b/modules/user/user.install index 2b93e4e68b3..46be8ff1d21 100644 --- a/modules/user/user.install +++ b/modules/user/user.install @@ -7,7 +7,7 @@ */ /** - * Implement hook_schema(). + * Implements hook_schema(). */ function user_schema() { $schema['authmap'] = array( diff --git a/modules/user/user.module b/modules/user/user.module index bd12d4f3819..41f82db005d 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -31,7 +31,7 @@ function user_module_invoke($type, &$edit, $account, $category = NULL) { } /** - * Implement hook_theme(). + * Implements hook_theme(). */ function user_theme() { return array( @@ -80,7 +80,7 @@ function user_theme() { } /** - * Implement hook_entity_info(). + * Implements hook_entity_info(). */ function user_entity_info() { $return = array( @@ -107,7 +107,7 @@ function user_entity_info() { } /** - * Implement hook_field_build_modes(). + * Implements hook_field_build_modes(). */ function user_field_build_modes($obj_type) { $modes = array(); @@ -120,7 +120,7 @@ function user_field_build_modes($obj_type) { } /** - * Implement hook_field_extra_fields(). + * Implements hook_field_extra_fields(). */ function user_field_extra_fields($bundle) { $extra = array(); @@ -720,7 +720,7 @@ function user_is_blocked($name) { } /** - * Implement hook_permission(). + * Implements hook_permission(). */ function user_permission() { return array( @@ -750,7 +750,7 @@ function user_permission() { } /** - * Implement hook_file_download(). + * Implements hook_file_download(). * * Ensure that user pictures (avatars) are always downloadable. */ @@ -762,7 +762,7 @@ function user_file_download($uri) { } /** - * Implement hook_file_references(). + * Implements hook_file_references(). */ function user_file_references($file) { // Determine if the file is used by this module. @@ -774,7 +774,7 @@ function user_file_references($file) { } /** - * Implement hook_file_delete(). + * Implements hook_file_delete(). */ function user_file_delete($file) { // Remove any references to the file. @@ -785,7 +785,7 @@ function user_file_delete($file) { } /** - * Implement hook_search_info(). + * Implements hook_search_info(). */ function user_search_info() { return array( @@ -794,14 +794,14 @@ function user_search_info() { } /** - * Implement hook_search_access(). + * Implements hook_search_access(). */ function user_search_access() { return user_access('access user profiles'); } /** - * Implement hook_search_execute(). + * Implements hook_search_execute(). */ function user_search_execute($keys = NULL) { $find = array(); @@ -828,7 +828,7 @@ function user_search_execute($keys = NULL) { } /** - * Implement hook_element_info(). + * Implements hook_element_info(). */ function user_element_info() { $types['user_profile_category'] = array( @@ -841,7 +841,7 @@ function user_element_info() { } /** - * Implement hook_user_view(). + * Implements hook_user_view(). */ function user_user_view($account) { $account->content['user_picture'] = array( @@ -1049,7 +1049,7 @@ function user_account_form_validate($form, &$form_state) { } /** - * Implement hook_user_presave(). + * Implements hook_user_presave(). */ function user_user_presave(&$edit, $account, $category) { if ($category == 'account' || $category == 'register') { @@ -1072,7 +1072,7 @@ function user_user_presave(&$edit, $account, $category) { } /** - * Implement hook_user_categories(). + * Implements hook_user_categories(). */ function user_user_categories() { return array(array( @@ -1112,7 +1112,7 @@ function user_login_block($form) { } /** - * Implement hook_block_info(). + * Implements hook_block_info(). */ function user_block_info() { global $user; @@ -1130,7 +1130,7 @@ function user_block_info() { } /** - * Implement hook_block_configure(). + * Implements hook_block_configure(). */ function user_block_configure($delta = '') { global $user; @@ -1154,7 +1154,7 @@ function user_block_configure($delta = '') { } /** - * Implement hook_block_save(). + * Implements hook_block_save(). */ function user_block_save($delta = '', $edit = array()) { global $user; @@ -1172,7 +1172,7 @@ function user_block_save($delta = '', $edit = array()) { } /** - * Implement hook_block_view(). + * Implements hook_block_view(). */ function user_block_view($delta = '') { global $user; @@ -1343,7 +1343,7 @@ function user_load_self($arg) { } /** - * Implement hook_menu(). + * Implements hook_menu(). */ function user_menu() { $items['user/autocomplete'] = array( @@ -1561,7 +1561,7 @@ function user_menu() { } /** - * Implement hook_init(). + * Implements hook_init(). */ function user_init() { drupal_add_css(drupal_get_path('module', 'user') . '/user.css'); @@ -2137,7 +2137,7 @@ function user_build_content($account, $build_mode = 'full') { } /** - * Implement hook_mail(). + * Implements hook_mail(). */ function user_mail($key, &$message, $params) { $language = $message['language']; @@ -2532,7 +2532,7 @@ function user_role_revoke_permissions($rid, array $permissions = array()) { } /** - * Implement hook_user_operations(). + * Implements hook_user_operations(). */ function user_user_operations($form = array(), $form_state = array()) { $operations = array( @@ -2731,7 +2731,7 @@ function user_multiple_cancel_confirm_submit($form, &$form_state) { } /** - * Implement hook_help(). + * Implements hook_help(). */ function user_help($path, $arg) { global $user; @@ -2854,7 +2854,7 @@ function user_build_filter_query(SelectQuery $query) { } /** - * Implement hook_forms(). + * Implements hook_forms(). */ function user_forms() { $forms['user_admin_access_add_form']['callback'] = 'user_admin_access_form'; @@ -2864,7 +2864,7 @@ function user_forms() { } /** - * Implement hook_comment_view(). + * Implements hook_comment_view(). */ function user_comment_view($comment) { if (variable_get('user_signatures', 0) && !empty($comment->signature)) { @@ -3000,7 +3000,7 @@ function user_form_process_password_confirm($element) { } /** - * Implementation of hook_node_load(). + * Implements hook_node_load(). */ function user_node_load($nodes, $types) { // Build an array of all uids for node authors, keyed by nid. @@ -3021,7 +3021,7 @@ function user_node_load($nodes, $types) { } /** - * Implement hook_image_style_delete(). + * Implements hook_image_style_delete(). */ function user_image_style_delete($style) { // If a style is deleted, update the variables. @@ -3030,7 +3030,7 @@ function user_image_style_delete($style) { } /** - * Implement hook_image_style_save(). + * Implements hook_image_style_save(). */ function user_image_style_save($style) { // If a style is renamed, update the variables that use it. @@ -3040,7 +3040,7 @@ function user_image_style_save($style) { } /** - * Implement hook_action_info(). + * Implements hook_action_info(). */ function user_action_info() { return array( @@ -3206,7 +3206,7 @@ function user_register_submit($form, &$form_state) { } /** - * Implementation of hook_modules_installed(). + * Implements hook_modules_installed(). */ function user_modules_installed($modules) { // Assign all available permissions to the administrator role. @@ -3227,7 +3227,7 @@ function user_modules_installed($modules) { } /** - * Implement hook_modules_uninstalled(). + * Implements hook_modules_uninstalled(). */ function user_modules_uninstalled($modules) { $permissions = array(); @@ -3276,7 +3276,7 @@ function user_cookie_save(array $values, array $fields = array('name', 'mail', ' } /** - * Implementation of hook_rdf_mapping(). + * Implements hook_rdf_mapping(). */ function user_rdf_mapping() { return array( diff --git a/modules/user/user.tokens.inc b/modules/user/user.tokens.inc index 0ae819f5f14..baee793bee3 100644 --- a/modules/user/user.tokens.inc +++ b/modules/user/user.tokens.inc @@ -7,7 +7,7 @@ */ /** - * Implement hook_token_info(). + * Implements hook_token_info(). */ function user_token_info() { $types['user'] = array( @@ -60,7 +60,7 @@ function user_token_info() { } /** - * Implement hook_tokens(). + * Implements hook_tokens(). */ function user_tokens($type, $tokens, array $data = array(), array $options = array()) { global $user; diff --git a/profiles/default/default.install b/profiles/default/default.install index 1b72498f866..ae9a9a55158 100644 --- a/profiles/default/default.install +++ b/profiles/default/default.install @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_install(). + * Implements hook_install(). * * Perform actions to set up the site for this profile. */ diff --git a/profiles/default/default.profile b/profiles/default/default.profile index 4724aea3983..f864b579c66 100644 --- a/profiles/default/default.profile +++ b/profiles/default/default.profile @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_form_alter(). + * Implements hook_form_alter(). * * Allows the profile to alter the site-configuration form. This is * called through custom invocation, so $form_state is not populated. diff --git a/profiles/expert/expert.install b/profiles/expert/expert.install index f6cb00ac8db..2ffd36465e7 100644 --- a/profiles/expert/expert.install +++ b/profiles/expert/expert.install @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_install(). + * Implements hook_install(). * * Perform actions to set up the site for this profile. */ diff --git a/profiles/expert/expert.profile b/profiles/expert/expert.profile index 45573d8dab0..a2b6f2438e1 100644 --- a/profiles/expert/expert.profile +++ b/profiles/expert/expert.profile @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_form_alter(). + * Implements hook_form_alter(). * * Allows the profile to alter the site-configuration form. This is * called through custom invocation, so $form_state is not populated. diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine index 23d86854e81..d57b044b741 100644 --- a/themes/engines/phptemplate/phptemplate.engine +++ b/themes/engines/phptemplate/phptemplate.engine @@ -14,7 +14,7 @@ function phptemplate_init($template) { } /** - * Implement hook_theme to tell Drupal what templates the engine + * Implements hook_theme to tell Drupal what templates the engine * and the current theme use. The $existing argument will contain hooks * pre-defined by Drupal so that we can use that information if * we need to. diff --git a/themes/garland/theme-settings.php b/themes/garland/theme-settings.php index 9f79b150e8c..5da31dad8ab 100644 --- a/themes/garland/theme-settings.php +++ b/themes/garland/theme-settings.php @@ -2,7 +2,7 @@ // $Id$ /** - * Implement hook_form_system_theme_settings_alter(). + * Implements hook_form_system_theme_settings_alter(). * * @param $form * The form.