summaryrefslogtreecommitdiff
path: root/modules/block.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-05-17 22:00:06 +0000
committerDries Buytaert <dries@buytaert.net>2004-05-17 22:00:06 +0000
commite52c0f5d41ad9319c9420bbe3a9dcfa76a90222f (patch)
tree16bddd048a7a2c0eb271879700cb7c47e2fe68ba /modules/block.module
parentac3c45dd2ac615327678301a5bb43d9c7edc7af8 (diff)
downloadbrdo-e52c0f5d41ad9319c9420bbe3a9dcfa76a90222f.tar.gz
brdo-e52c0f5d41ad9319c9420bbe3a9dcfa76a90222f.tar.bz2
- Code improvements by JonBob. Thanks.
Diffstat (limited to 'modules/block.module')
-rw-r--r--modules/block.module13
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/block.module b/modules/block.module
index 1921193b6..17137ec89 100644
--- a/modules/block.module
+++ b/modules/block.module
@@ -48,7 +48,7 @@ function block_help($section) {
}
/**
- * Menu callback. Presents the block-specific information from admin/help.
+ * Menu callback; presents the block-specific information from admin/help.
*/
function block_help_page() {
print theme('page', block_help('admin/help#block'));
@@ -192,7 +192,7 @@ function block_admin_display() {
}
/**
- * Menu callback. Displays the block layout as it will appear when themed.
+ * Menu callback; displays the block layout as it will appear when themed.
*/
function block_admin_preview() {
$result = db_query('SELECT * FROM {blocks} WHERE status > 0 AND region = 0 ORDER BY weight');
@@ -251,8 +251,9 @@ function block_box_get($bid) {
}
/**
- * Menu callback. Displays the block editing form, or saves changes and
- * displays the block overview.
+ * Menu callback; displays the block editing form.
+ *
+ * On edit, saves changes and displays the block overview.
*/
function block_box_edit($bid = 0) {
$edit = $_POST['edit'];
@@ -310,7 +311,7 @@ function block_box_save($edit) {
}
/**
- * Menu callback. Deletes a custom box, then displays the overview page.
+ * Menu callback; deletes a custom box, then displays the overview page.
*/
function block_box_delete($bid = 0) {
if ($bid) {
@@ -322,7 +323,7 @@ function block_box_delete($bid = 0) {
}
/**
- * Menu callback. Displays the block overview page.
+ * Menu callback; displays the block overview page.
*/
function block_admin() {
$edit = $_POST['edit'];