C:/drupal/modules/block/block.admin.inc File Reference

Go to the source code of this file.


Functions

 block_admin_display ($theme=NULL)
 block_admin_display_form (&$form_state, $blocks, $theme=NULL)
 block_admin_display_form_submit ($form, &$form_state)
 _block_compare ($a, $b)
 block_admin_configure (&$form_state, $module=NULL, $delta=0)
 block_admin_configure_validate ($form, &$form_state)
 block_admin_configure_submit ($form, &$form_state)
 block_add_block_form (&$form_state)
 block_add_block_form_validate ($form, &$form_state)
 block_add_block_form_submit ($form, &$form_state)
 block_box_delete (&$form_state, $bid=0)
 block_box_delete_submit ($form, &$form_state)
 template_preprocess_block_admin_display_form (&$variables)


Detailed Description

Admin page callbacks for the block module.

Definition in file block.admin.inc.


Function Documentation

_block_compare ( a,
b 
)

Helper function for sorting blocks on admin/build/block.

Active blocks are sorted by region, then by weight. Disabled blocks are sorted by name.

Definition at line 110 of file block.admin.inc.

References $status.

block_add_block_form ( &$  form_state  ) 

Menu callback: display the custom block addition form.

Definition at line 291 of file block.admin.inc.

References block_admin_configure().

Here is the call graph for this function:

block_add_block_form_submit ( form,
&$  form_state 
)

Save the new custom block.

Definition at line 304 of file block.admin.inc.

References cache_clear_all(), db_last_insert_id(), db_query(), drupal_set_message(), list_themes(), name, and t().

Here is the call graph for this function:

block_add_block_form_validate ( form,
&$  form_state 
)

Definition at line 295 of file block.admin.inc.

References db_query(), db_result(), form_set_error(), and t().

Here is the call graph for this function:

block_admin_configure ( &$  form_state,
module = NULL,
delta = 0 
)

Menu callback; displays the block configuration form.

Definition at line 142 of file block.admin.inc.

References $result, db_fetch_array(), db_fetch_object(), db_query(), drupal_set_title(), module_invoke(), and t().

Referenced by block_add_block_form().

Here is the call graph for this function:

block_admin_configure_submit ( form,
&$  form_state 
)

Definition at line 273 of file block.admin.inc.

References cache_clear_all(), db_query(), drupal_set_message(), form_get_errors(), module_invoke(), and t().

Here is the call graph for this function:

block_admin_configure_validate ( form,
&$  form_state 
)

Definition at line 265 of file block.admin.inc.

References db_query(), db_result(), form_set_error(), and t().

Here is the call graph for this function:

block_admin_display ( theme = NULL  ) 

Menu callback for admin/build/block.

Definition at line 12 of file block.admin.inc.

References drupal_get_form(), and variable_get().

Here is the call graph for this function:

block_admin_display_form ( &$  form_state,
blocks,
theme = NULL 
)

Generate main blocks administration form.

Definition at line 28 of file block.admin.inc.

References arg(), check_plain(), drupal_add_css(), drupal_get_path(), init_theme(), l(), t(), url(), and variable_get().

Here is the call graph for this function:

block_admin_display_form_submit ( form,
&$  form_state 
)

Process main blocks administration form submissions.

Definition at line 94 of file block.admin.inc.

References cache_clear_all(), db_query(), drupal_set_message(), and t().

Here is the call graph for this function:

block_box_delete ( &$  form_state,
bid = 0 
)

Menu callback; confirm deletion of custom blocks.

Definition at line 329 of file block.admin.inc.

References t().

Here is the call graph for this function:

block_box_delete_submit ( form,
&$  form_state 
)

Deletion of custom blocks.

Definition at line 340 of file block.admin.inc.

References cache_clear_all(), db_query(), drupal_set_message(), and t().

Here is the call graph for this function:

template_preprocess_block_admin_display_form ( &$  variables  ) 

Process variables for block-admin-display.tpl.php.

The $variables array contains the following arguments:

  • $form

See also:
block-admin-display.tpl.php

theme_block_admin_display()

Definition at line 358 of file block.admin.inc.

References $value, drupal_render(), drupal_set_content(), element_children(), and t().

Here is the call graph for this function:


Generated on Mon Jun 2 15:08:16 2008 for SimpleTest by  1.5.5