Commit 1da26fad authored by Dries's avatar Dries

- Patch #502190 by jhodgdon, stella, sun: hook implementation headers out of...

- Patch #502190 by jhodgdon, stella, sun: hook implementation headers out of compliance with standards.
parent 8523aca3
......@@ -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;
......
......@@ -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(
......
......@@ -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.
*/
......
......@@ -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;
......
......@@ -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.
......
......@@ -2,7 +2,7 @@
// $Id$
/**
* Implement hook_menu().
* Implements hook_menu().
*/
function aggregator_test_menu() {
$items['aggregator/test-feed'] = array(
......
......@@ -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() {
......
......@@ -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'));
......
......@@ -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.
*/
......
......@@ -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(
......
......@@ -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.
......
......@@ -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);
......
......@@ -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(
......
......@@ -71,7 +71,7 @@
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().