- Patch by JonBob: for consistency and readability, add brief descriptions of each source file inside the @file comment block at the head of the file. This helps with Doxygen indexing, and also allows neophytes to see what a file does immediately on opening the source, regardless of the organization of the hooks.

4.5.x
Dries Buytaert 2004-08-21 06:42:38 +00:00
parent 6696028a75
commit 94e30bf776
71 changed files with 340 additions and 25 deletions

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Handles incoming requests to fire of regularly-scheduled tasks (cron jobs).
*/
include_once 'includes/bootstrap.inc'; include_once 'includes/bootstrap.inc';
include_once 'includes/common.inc' ; include_once 'includes/common.inc' ;

View File

@ -1,6 +1,11 @@
<?php <?php
/* $Id$ */ /* $Id$ */
/**
* @file
* All incremental database updates performed between Drupal releases.
*/
// Define the various updates in an array("date : comment" => "function"); // Define the various updates in an array("date : comment" => "function");
$sql_updates = array( $sql_updates = array(
"2002-06-22: first update since Drupal 4.0.0 release" => "update_32", "2002-06-22: first update since Drupal 4.0.0 release" => "update_32",

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Drupal site-specific configuration file.
*/
# #
# Database settings: # Database settings:
# #

View File

@ -1,6 +1,11 @@
<?php <?php
/* $Id$ */ /* $Id$ */
/**
* @file
* API for handling file uploads and server file management.
*/
/** /**
* @defgroup file File interface * @defgroup file File interface
* Common file handling functions. * Common file handling functions.

View File

@ -1,10 +1,9 @@
<?php <?php
// $Id$ // $Id$
/** /**
* @file * @file
* * Admin-related functions for locale.module.
* Admin related functions for locale.module
*
*/ */
// --------------------------------------------------------------------------------- // ---------------------------------------------------------------------------------

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* User session handling functions.
*/
session_set_save_handler("sess_open", "sess_close", "sess_read", "sess_write", "sess_destroy", "sess_gc"); session_set_save_handler("sess_open", "sess_close", "sess_read", "sess_write", "sess_destroy", "sess_gc");
session_start(); session_start();

View File

@ -1,6 +1,14 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* The PHP page that serves all page requests on a Drupal installation.
*
* The routines here dispatch control to the appropriate handler, which then
* prints the appropriate page.
*/
include_once 'includes/bootstrap.inc'; include_once 'includes/bootstrap.inc';
drupal_page_header(); drupal_page_header();
include_once 'includes/common.inc'; include_once 'includes/common.inc';

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Handles the administration pages.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
/* $Id$ */ /* $Id$ */
/**
* @file
* Used to aggregate syndicated content (RSS and RDF).
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
/* $Id$ */ /* $Id$ */
/**
* @file
* Used to aggregate syndicated content (RSS and RDF).
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Displays a calendar to navigate old content.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Displays a calendar to navigate old content.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Controls the boxes that are displayed around the main content.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Controls the boxes that are displayed around the main content.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables keeping an easily and regularly updated web page or a blog.
*/
/** /**
* Implementation of hook_settings(). * Implementation of hook_settings().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables keeping an easily and regularly updated web page or a blog.
*/
/** /**
* Implementation of hook_settings(). * Implementation of hook_settings().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enable users to post using applications that support XML-RPC blog APIs.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */
@ -9,7 +14,7 @@ function blogapi_help($section) {
case 'admin/help#blogapi': case 'admin/help#blogapi':
return t('This module adds support for several XML-RPC based blogging APIs. Specifically, it currently implements the %bloggerAPI, %metaweblogAPI, and most of the %moveabletype extensions. This allows users to contribute to drupal using external GUI applications, which can often offer richer functionality that online forms based editing', array('%bloggerAPI' => '<a href="http://www.blogger.com/developers/api/1_docs/">Blogger API</a>', '%metaweblogAPI' => '<a href="http://www.xmlrpc.com/metaWeblogApi">MetaWeblog API</a>', '%moveabletype' => '<a href="http://www.movabletype.org/docs/mtmanual_programmatic.html">Moveable Type API</a>')); return t('This module adds support for several XML-RPC based blogging APIs. Specifically, it currently implements the %bloggerAPI, %metaweblogAPI, and most of the %moveabletype extensions. This allows users to contribute to drupal using external GUI applications, which can often offer richer functionality that online forms based editing', array('%bloggerAPI' => '<a href="http://www.blogger.com/developers/api/1_docs/">Blogger API</a>', '%metaweblogAPI' => '<a href="http://www.xmlrpc.com/metaWeblogApi">MetaWeblog API</a>', '%moveabletype' => '<a href="http://www.movabletype.org/docs/mtmanual_programmatic.html">Moveable Type API</a>'));
case 'admin/modules#description': case 'admin/modules#description':
return t('Enable users to post using applications that support XML-RPC blog APIs'); return t('Enable users to post using applications that support XML-RPC blog APIs.');
} }
} }

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enable users to post using applications that support XML-RPC blog APIs.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */
@ -9,7 +14,7 @@ function blogapi_help($section) {
case 'admin/help#blogapi': case 'admin/help#blogapi':
return t('This module adds support for several XML-RPC based blogging APIs. Specifically, it currently implements the %bloggerAPI, %metaweblogAPI, and most of the %moveabletype extensions. This allows users to contribute to drupal using external GUI applications, which can often offer richer functionality that online forms based editing', array('%bloggerAPI' => '<a href="http://www.blogger.com/developers/api/1_docs/">Blogger API</a>', '%metaweblogAPI' => '<a href="http://www.xmlrpc.com/metaWeblogApi">MetaWeblog API</a>', '%moveabletype' => '<a href="http://www.movabletype.org/docs/mtmanual_programmatic.html">Moveable Type API</a>')); return t('This module adds support for several XML-RPC based blogging APIs. Specifically, it currently implements the %bloggerAPI, %metaweblogAPI, and most of the %moveabletype extensions. This allows users to contribute to drupal using external GUI applications, which can often offer richer functionality that online forms based editing', array('%bloggerAPI' => '<a href="http://www.blogger.com/developers/api/1_docs/">Blogger API</a>', '%metaweblogAPI' => '<a href="http://www.xmlrpc.com/metaWeblogApi">MetaWeblog API</a>', '%moveabletype' => '<a href="http://www.movabletype.org/docs/mtmanual_programmatic.html">Moveable Type API</a>'));
case 'admin/modules#description': case 'admin/modules#description':
return t('Enable users to post using applications that support XML-RPC blog APIs'); return t('Enable users to post using applications that support XML-RPC blog APIs.');
} }
} }

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Allows users to collaboratively author a book.
*/
/** /**
* Implementation of hook_node_name(). * Implementation of hook_node_name().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Allows users to collaboratively author a book.
*/
/** /**
* Implementation of hook_node_name(). * Implementation of hook_node_name().
*/ */

View File

@ -3,8 +3,7 @@
/** /**
* @file * @file
* * Enables users to comment on published content.
* Enables user to comment on published content.
* *
* When enabled, the Drupal comment module creates a discussion * When enabled, the Drupal comment module creates a discussion
* board for each Drupal node. Users can post comments to discuss * board for each Drupal node. Users can post comments to discuss

View File

@ -3,8 +3,7 @@
/** /**
* @file * @file
* * Enables users to comment on published content.
* Enables user to comment on published content.
* *
* When enabled, the Drupal comment module creates a discussion * When enabled, the Drupal comment module creates a discussion
* board for each Drupal node. Users can post comments to discuss * board for each Drupal node. Users can post comments to discuss

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Lets users log in using a Drupal ID and can notify a central server about your site.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Lets users log in using a Drupal ID and can notify a central server about your site.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Framework for handling filtering of content.
*/
define('FILTER_FORMAT_DEFAULT', 0); define('FILTER_FORMAT_DEFAULT', 0);
define('FILTER_HTML_STRIP', 1); define('FILTER_HTML_STRIP', 1);

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Framework for handling filtering of content.
*/
define('FILTER_FORMAT_DEFAULT', 0); define('FILTER_FORMAT_DEFAULT', 0);
define('FILTER_HTML_STRIP', 1); define('FILTER_HTML_STRIP', 1);

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enable threaded discussions about general topics.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enable threaded discussions about general topics.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Manages displaying online help.
*/
/** /**
* Implementation of hook_menu(). * Implementation of hook_menu().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Manages displaying online help.
*/
/** /**
* Implementation of hook_menu(). * Implementation of hook_menu().
*/ */

View File

@ -3,7 +3,6 @@
/** /**
* @file * @file
*
* Enables administrators to manage the site interface languages. * Enables administrators to manage the site interface languages.
* *
* When enabled, the site interface can be displayed in different * When enabled, the site interface can be displayed in different

View File

@ -3,7 +3,6 @@
/** /**
* @file * @file
*
* Enables administrators to manage the site interface languages. * Enables administrators to manage the site interface languages.
* *
* When enabled, the site interface can be displayed in different * When enabled, the site interface can be displayed in different

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Allows administrators to customize the site navigation menu.
*/
/** /**
* Implementation of hook_menu(). * Implementation of hook_menu().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Allows administrators to customize the site navigation menu.
*/
/** /**
* Implementation of hook_menu(). * Implementation of hook_menu().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* The core that allows content to be submitted to the site.
*/
define('NODE_NEW_LIMIT', time() - 30 * 24 * 60 * 60); define('NODE_NEW_LIMIT', time() - 30 * 24 * 60 * 60);
/** /**

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* The core that allows content to be submitted to the site.
*/
define('NODE_NEW_LIMIT', time() - 30 * 24 * 60 * 60); define('NODE_NEW_LIMIT', time() - 30 * 24 * 60 * 60);
/** /**

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables the creation of pages that can be added to the navigation system.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables the creation of pages that can be added to the navigation system.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
/* $Id$ */ /* $Id$ */
/**
* @file
* Enables users to rename URLs.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
/* $Id$ */ /* $Id$ */
/**
* @file
* Enables users to rename URLs.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Alerts other sites that your site has been updated.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Alerts other sites that your site has been updated.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,12 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables your site to capture votes on different topics in the form of multiple
* choice questions.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,12 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables your site to capture votes on different topics in the form of multiple
* choice questions.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Support for configurable user profiles.
*/
/** /**
* Flags to define the visibility of a profile field. * Flags to define the visibility of a profile field.
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Support for configurable user profiles.
*/
/** /**
* Flags to define the visibility of a profile field. * Flags to define the visibility of a profile field.
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables content to be moderated by the community.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables site-wide keyword searching.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables site-wide keyword searching.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Logs access statistics for your site.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Logs access statistics for your site.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables users to submit stories, articles or similar content.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables users to submit stories, articles or similar content.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Configuration system that lets administrators modify the workings of the site.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Configuration system that lets administrators modify the workings of the site.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables the organization of content into categories.
*/
/** /**
* Implementation of hook_perm(). * Implementation of hook_perm().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables the organization of content into categories.
*/
/** /**
* Implementation of hook_perm(). * Implementation of hook_perm().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Allows configuration of congestion control auto-throttle mechanism.
*/
/** /**
* Determine the current load on the site. * Determine the current load on the site.
* *

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Allows configuration of congestion control auto-throttle mechanism.
*/
/** /**
* Determine the current load on the site. * Determine the current load on the site.
* *

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables tracking of recent posts for users.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables tracking of recent posts for users.
*/
/** /**
* Implementation of hook_help(). * Implementation of hook_help().
*/ */

View File

@ -1,6 +1,11 @@
<?php <?php
/* $Id$ */ /* $Id$ */
/**
* @file
* File-handling and attaching files to nodes.
*/
function upload_help($section) { function upload_help($section) {
switch ($section) { switch ($section) {
case 'admin/modules#description': case 'admin/modules#description':

View File

@ -1,6 +1,11 @@
<?php <?php
/* $Id$ */ /* $Id$ */
/**
* @file
* File-handling and attaching files to nodes.
*/
function upload_help($section) { function upload_help($section) {
switch ($section) { switch ($section) {
case 'admin/modules#description': case 'admin/modules#description':

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables the user registration and login system.
*/
/** /**
* Invokes hook_user() in every module. * Invokes hook_user() in every module.
* *

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Enables the user registration and login system.
*/
/** /**
* Invokes hook_user() in every module. * Invokes hook_user() in every module.
* *

View File

@ -3,7 +3,6 @@
/** /**
* @file * @file
*
* System monitoring and logging for administrators. * System monitoring and logging for administrators.
* *
* The watchdog module monitors your site and keeps a list of * The watchdog module monitors your site and keeps a list of

View File

@ -3,7 +3,6 @@
/** /**
* @file * @file
*
* System monitoring and logging for administrators. * System monitoring and logging for administrators.
* *
* The watchdog module monitors your site and keeps a list of * The watchdog module monitors your site and keeps a list of

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* A slim, CSS-driven theme.
*/
function chameleon_features() { function chameleon_features() {
return array( return array(
'logo', 'logo',

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* Handles the interface between XTemplate files and the Drupal theme system.
*/
// Initialize the xtemplate engine. // Initialize the xtemplate engine.
function xtemplate_init($template) { function xtemplate_init($template) {
// We cannot use the theme() or path_to_theme() functions here // We cannot use the theme() or path_to_theme() functions here

View File

@ -1,19 +1,21 @@
<?php <?php
// $Id$ // $Id$
/*
** USAGE: /**
** * @file
** - Point your browser to "http://www.site.com/update.php" and follow * Administrative page for handling updates from one Drupal version to another.
** the instructions. *
** * Point your browser to "http://www.site.com/update.php" and follow the
** - If you are not logged in as administrator, you will need to modify the * instructions.
** statement below. Change the 1 into a 0 to disable the access check. *
** After finishing the upgrade, open this file and change the 0 back into * If you are not logged in as administrator, you will need to modify the access
** a 1! * check statement below. Change the TRUE into a FALSE to disable the access
* check. After finishing the upgrade, be sure to open this file and change the
* FALSE back into a TRUE!
*/ */
// Disable access checking? // Disable access checking?
$access_check = 1; $access_check = TRUE;
if (!ini_get("safe_mode")) { if (!ini_get("safe_mode")) {
set_time_limit(180); set_time_limit(180);

View File

@ -1,6 +1,11 @@
<?php <?php
// $Id$ // $Id$
/**
* @file
* PHP page for handling incoming XML-RPC requests from clients.
*/
include_once 'includes/bootstrap.inc'; include_once 'includes/bootstrap.inc';
include_once 'includes/common.inc'; include_once 'includes/common.inc';
include_once 'includes/xmlrpc.inc'; include_once 'includes/xmlrpc.inc';