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 @@ ...@@ -7,7 +7,7 @@
*/ */
/** /**
* Implement hook_aggregator_fetch_info(). * Implements hook_aggregator_fetch_info().
*/ */
function aggregator_aggregator_fetch_info() { function aggregator_aggregator_fetch_info() {
return array( return array(
...@@ -17,7 +17,7 @@ function aggregator_aggregator_fetch_info() { ...@@ -17,7 +17,7 @@ function aggregator_aggregator_fetch_info() {
} }
/** /**
* Implement hook_aggregator_fetch(). * Implements hook_aggregator_fetch().
*/ */
function aggregator_aggregator_fetch($feed) { function aggregator_aggregator_fetch($feed) {
$feed->source_string = FALSE; $feed->source_string = FALSE;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
*/ */
/** /**
* Implement hook_uninstall(). * Implements hook_uninstall().
*/ */
function aggregator_uninstall() { function aggregator_uninstall() {
variable_del('aggregator_allowed_html_tags'); variable_del('aggregator_allowed_html_tags');
...@@ -21,7 +21,7 @@ function aggregator_uninstall() { ...@@ -21,7 +21,7 @@ function aggregator_uninstall() {
} }
/** /**
* Implement hook_schema(). * Implements hook_schema().
*/ */
function aggregator_schema() { function aggregator_schema() {
$schema['aggregator_category'] = array( $schema['aggregator_category'] = array(
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
define('AGGREGATOR_CLEAR_NEVER', 0); define('AGGREGATOR_CLEAR_NEVER', 0);
/** /**
* Implement hook_help(). * Implements hook_help().
*/ */
function aggregator_help($path, $arg) { function aggregator_help($path, $arg) {
switch ($path) { switch ($path) {
...@@ -46,7 +46,7 @@ function aggregator_help($path, $arg) { ...@@ -46,7 +46,7 @@ function aggregator_help($path, $arg) {
} }
/** /**
* Implement hook_theme(). * Implements hook_theme().
*/ */
function aggregator_theme() { function aggregator_theme() {
return array( return array(
...@@ -94,7 +94,7 @@ function aggregator_theme() { ...@@ -94,7 +94,7 @@ function aggregator_theme() {
} }
/** /**
* Implement hook_menu(). * Implements hook_menu().
*/ */
function aggregator_menu() { function aggregator_menu() {
$items['admin/config/services/aggregator'] = array( $items['admin/config/services/aggregator'] = array(
...@@ -282,7 +282,7 @@ function _aggregator_category_title($category) { ...@@ -282,7 +282,7 @@ function _aggregator_category_title($category) {
} }
/** /**
* Implement hook_init(). * Implements hook_init().
*/ */
function aggregator_init() { function aggregator_init() {
drupal_add_css(drupal_get_path('module', 'aggregator') . '/aggregator.css'); drupal_add_css(drupal_get_path('module', 'aggregator') . '/aggregator.css');
...@@ -299,7 +299,7 @@ function _aggregator_has_categories() { ...@@ -299,7 +299,7 @@ function _aggregator_has_categories() {
} }
/** /**
* Implement hook_permission(). * Implements hook_permission().
*/ */
function aggregator_permission() { function aggregator_permission() {
return array( return array(
...@@ -313,7 +313,7 @@ function aggregator_permission() { ...@@ -313,7 +313,7 @@ function aggregator_permission() {
} }
/** /**
* Implement hook_cron(). * Implements hook_cron().
* *
* Queues news feeds for updates once their refresh interval has elapsed. * Queues news feeds for updates once their refresh interval has elapsed.
*/ */
...@@ -329,7 +329,7 @@ function aggregator_cron() { ...@@ -329,7 +329,7 @@ function aggregator_cron() {
} }
/** /**
* Implement hook_cron_queue_info(). * Implements hook_cron_queue_info().
*/ */
function aggregator_cron_queue_info() { function aggregator_cron_queue_info() {
$queues['aggregator_feeds'] = array( $queues['aggregator_feeds'] = array(
...@@ -340,7 +340,7 @@ function aggregator_cron_queue_info() { ...@@ -340,7 +340,7 @@ function aggregator_cron_queue_info() {
} }
/** /**
* Implement hook_block_info(). * Implements hook_block_info().
*/ */
function aggregator_block_info() { function aggregator_block_info() {
$block = array(); $block = array();
...@@ -356,7 +356,7 @@ function aggregator_block_info() { ...@@ -356,7 +356,7 @@ function aggregator_block_info() {
} }
/** /**
* Implement hook_block_configure(). * Implements hook_block_configure().
*/ */
function aggregator_block_configure($delta = '') { function aggregator_block_configure($delta = '') {
list($type, $id) = explode('-', $delta); list($type, $id) = explode('-', $delta);
...@@ -373,7 +373,7 @@ function aggregator_block_configure($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()) { function aggregator_block_save($delta = '', $edit = array()) {
list($type, $id) = explode('-', $delta); list($type, $id) = explode('-', $delta);
...@@ -386,7 +386,7 @@ function aggregator_block_save($delta = '', $edit = array()) { ...@@ -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. * Generates blocks for the latest news items in each category and feed.
*/ */
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
*/ */
/** /**
* Implement hook_aggregator_parse_info(). * Implements hook_aggregator_parse_info().
*/ */
function aggregator_aggregator_parse_info() { function aggregator_aggregator_parse_info() {
return array( return array(
...@@ -17,7 +17,7 @@ function aggregator_aggregator_parse_info() { ...@@ -17,7 +17,7 @@ function aggregator_aggregator_parse_info() {
} }
/** /**
* Implement hook_aggregator_parse(). * Implements hook_aggregator_parse().
*/ */
function aggregator_aggregator_parse($feed) { function aggregator_aggregator_parse($feed) {
global $channel, $image; global $channel, $image;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
*/ */
/** /**
* Implement hook_aggregator_process_info(). * Implements hook_aggregator_process_info().
*/ */
function aggregator_aggregator_process_info() { function aggregator_aggregator_process_info() {
return array( return array(
...@@ -17,7 +17,7 @@ function aggregator_aggregator_process_info() { ...@@ -17,7 +17,7 @@ function aggregator_aggregator_process_info() {
} }
/** /**
* Implement hook_aggregator_process(). * Implements hook_aggregator_process().
*/ */
function aggregator_aggregator_process($feed) { function aggregator_aggregator_process($feed) {
if (is_object($feed)) { if (is_object($feed)) {
...@@ -45,7 +45,7 @@ function aggregator_aggregator_process($feed) { ...@@ -45,7 +45,7 @@ function aggregator_aggregator_process($feed) {
} }
/** /**
* Implement hook_aggregator_remove(). * Implements hook_aggregator_remove().
*/ */
function aggregator_aggregator_remove($feed) { function aggregator_aggregator_remove($feed) {
$iids = db_query('SELECT iid FROM {aggregator_item} WHERE fid = :fid', array(':fid' => $feed->fid))->fetchCol(); $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) { ...@@ -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 * Form alter aggregator module's own form to keep processor functionality
* separate from aggregator API functionality. * separate from aggregator API functionality.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// $Id$ // $Id$
/** /**
* Implement hook_menu(). * Implements hook_menu().
*/ */
function aggregator_test_menu() { function aggregator_test_menu() {
$items['aggregator/test-feed'] = array( $items['aggregator/test-feed'] = array(
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
*/ */
/** /**
* Implement hook_schema(). * Implements hook_schema().
*/ */
function block_schema() { function block_schema() {
$schema['block'] = array( $schema['block'] = array(
...@@ -204,7 +204,7 @@ function block_schema() { ...@@ -204,7 +204,7 @@ function block_schema() {
} }
/** /**
* Implement hook_install(). * Implements hook_install().
*/ */
function block_install() { function block_install() {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
define('BLOCK_REGION_NONE', -1); define('BLOCK_REGION_NONE', -1);
/** /**
* Implement hook_help(). * Implements hook_help().
*/ */
function block_help($path, $arg) { function block_help($path, $arg) {
switch ($path) { switch ($path) {
...@@ -43,7 +43,7 @@ function block_help($path, $arg) { ...@@ -43,7 +43,7 @@ function block_help($path, $arg) {
} }
/** /**
* Implement hook_theme(). * Implements hook_theme().
*/ */
function block_theme() { function block_theme() {
return array( return array(
...@@ -60,7 +60,7 @@ function block_theme() { ...@@ -60,7 +60,7 @@ function block_theme() {
} }
/** /**
* Implement hook_permission(). * Implements hook_permission().
*/ */
function block_permission() { function block_permission() {
return array( return array(
...@@ -71,7 +71,7 @@ function block_permission() { ...@@ -71,7 +71,7 @@ function block_permission() {
} }
/** /**
* Implement hook_menu(). * Implements hook_menu().
*/ */
function block_menu() { function block_menu() {
$default_theme = variable_get('theme_default', 'garland'); $default_theme = variable_get('theme_default', 'garland');
...@@ -166,7 +166,7 @@ function _block_custom_theme($theme = NULL) { ...@@ -166,7 +166,7 @@ function _block_custom_theme($theme = NULL) {
} }
/** /**
* Implement hook_block_info(). * Implements hook_block_info().
*/ */
function block_block_info() { function block_block_info() {
$blocks = array(); $blocks = array();
...@@ -181,7 +181,7 @@ function block_block_info() { ...@@ -181,7 +181,7 @@ function block_block_info() {
} }
/** /**
* Implement hook_block_configure(). * Implements hook_block_configure().
*/ */
function block_block_configure($delta = 0) { function block_block_configure($delta = 0) {
$custom_block = array('format' => filter_default_format()); $custom_block = array('format' => filter_default_format());
...@@ -192,14 +192,14 @@ function block_block_configure($delta = 0) { ...@@ -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()) { function block_block_save($delta = 0, $edit = array()) {
block_custom_block_save($edit, $delta); block_custom_block_save($edit, $delta);
} }
/** /**
* Implement hook_block_view(). * Implements hook_block_view().
* *
* Generates the administrator-defined blocks for display. * Generates the administrator-defined blocks for display.
*/ */
...@@ -210,7 +210,7 @@ function block_block_view($delta = 0, $edit = array()) { ...@@ -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. * Render blocks into their regions.
*/ */
...@@ -461,7 +461,7 @@ function block_custom_block_save($edit, $delta) { ...@@ -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) { function block_form_user_profile_form_alter(&$form, &$form_state) {
if ($form['#user_category'] == 'account') { if ($form['#user_category'] == 'account') {
...@@ -626,7 +626,7 @@ function _block_load_blocks() { ...@@ -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. * Check the page, user role, content type and user specific visibilty settings.
* Remove the block if the visibility conditions are not met. * Remove the block if the visibility conditions are not met.
...@@ -833,7 +833,7 @@ function _block_get_cache_id($block) { ...@@ -833,7 +833,7 @@ function _block_get_cache_id($block) {
} }
/** /**
* Implement hook_flush_caches(). * Implements hook_flush_caches().
*/ */
function block_flush_caches() { function block_flush_caches() {
return array('cache_block'); return array('cache_block');
...@@ -878,7 +878,7 @@ function template_preprocess_block(&$variables) { ...@@ -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. * Remove deleted role from blocks that use it.
*/ */
...@@ -889,7 +889,7 @@ function block_user_role_delete($role) { ...@@ -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) { function block_filter_format_delete($format, $fallback) {
db_update('block_custom') db_update('block_custom')
...@@ -899,7 +899,7 @@ function block_filter_format_delete($format, $fallback) { ...@@ -899,7 +899,7 @@ function block_filter_format_delete($format, $fallback) {
} }
/** /**
* Implement hook_menu_delete(). * Implements hook_menu_delete().
*/ */
function block_menu_delete($menu) { function block_menu_delete($menu) {
db_delete('block') db_delete('block')
...@@ -913,7 +913,7 @@ function block_menu_delete($menu) { ...@@ -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) { function block_form_system_performance_settings_alter(&$form, &$form_state) {
$disabled = count(module_implements('node_grants')); $disabled = count(module_implements('node_grants'));
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
*/ */
/** /**
* Implement hook_node_info(). * Implements hook_node_info().
*/ */
function blog_node_info() { function blog_node_info() {
return array( return array(
...@@ -20,7 +20,7 @@ function blog_node_info() { ...@@ -20,7 +20,7 @@ function blog_node_info() {
} }
/** /**
* Implement hook_user_view(). * Implements hook_user_view().
*/ */
function blog_user_view($account) { function blog_user_view($account) {
if (user_access('create blog content', $account)) { if (user_access('create blog content', $account)) {
...@@ -34,7 +34,7 @@ function blog_user_view($account) { ...@@ -34,7 +34,7 @@ function blog_user_view($account) {
} }
/** /**
* Implement hook_help(). * Implements hook_help().
*/ */
function blog_help($path, $arg) { function blog_help($path, $arg) {
switch ($path) { switch ($path) {
...@@ -57,14 +57,14 @@ function blog_help($path, $arg) { ...@@ -57,14 +57,14 @@ function blog_help($path, $arg) {
} }
/** /**
* Implement hook_form(). * Implements hook_form().
*/ */
function blog_form($node, $form_state) { function blog_form($node, $form_state) {
return node_content_form($node, $form_state); return node_content_form($node, $form_state);
} }
/** /**
* Implement hook_view(). * Implements hook_view().
*/ */
function blog_view($node, $build_mode) { function blog_view($node, $build_mode) {
if ((bool)menu_get_object()) { if ((bool)menu_get_object()) {
...@@ -75,7 +75,7 @@ function blog_view($node, $build_mode) { ...@@ -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') { function blog_node_view($node, $build_mode = 'full') {