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

Go to the source code of this file.


Functions

 menu_overview_page ()
 menu_overview_form (&$form_state, $menu)
 _menu_overview_tree_form ($tree)
 menu_overview_form_submit ($form, &$form_state)
 theme_menu_overview_form ($form)
 menu_edit_item (&$form_state, $type, $item, $menu)
 menu_edit_item_validate ($form, &$form_state)
 menu_item_delete_submit ($form, &$form_state)
 menu_edit_item_submit ($form, &$form_state)
 menu_edit_menu (&$form_state, $type, $menu=array())
 menu_custom_delete_submit ($form, &$form_state)
 menu_delete_menu_page ($menu)
 menu_delete_menu_confirm (&$form_state, $menu)
 menu_delete_menu_confirm_submit ($form, &$form_state)
 menu_edit_menu_validate ($form, &$form_state)
 menu_edit_menu_submit ($form, &$form_state)
 menu_item_delete_page ($item)
 menu_item_delete_form (&$form_state, $item)
 menu_item_delete_form_submit ($form, &$form_state)
 menu_reset_item_confirm (&$form_state, $item)
 menu_reset_item_confirm_submit ($form, &$form_state)
 menu_configure ()


Detailed Description

Administrative page callbaks for menu module.

Definition in file menu.admin.inc.


Function Documentation

_menu_overview_tree_form ( tree  ) 

Recursive helper function for menu_overview_form().

Definition at line 62 of file menu.admin.inc.

References $op, $title, $value, l(), and t().

Referenced by menu_overview_form().

Here is the call graph for this function:

menu_configure (  ) 

Menu callback; Build the form presenting menu configuration options.

Definition at line 600 of file menu.admin.inc.

References t(), and variable_get().

Here is the call graph for this function:

menu_custom_delete_submit ( form,
&$  form_state 
)

Submit function for the 'Delete' button on the menu editing form.

Definition at line 433 of file menu.admin.inc.

menu_delete_menu_confirm ( &$  form_state,
menu 
)

Build a confirm form for deletion of a custom menu.

Definition at line 452 of file menu.admin.inc.

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

Here is the call graph for this function:

menu_delete_menu_confirm_submit ( form,
&$  form_state 
)

Delete a custom menu and all items in it.

Definition at line 466 of file menu.admin.inc.

References $result, cache_clear_all(), db_fetch_array(), db_query(), db_result(), drupal_set_message(), menu_cache_clear_all(), menu_link_delete(), menu_list_system_menus(), t(), and watchdog().

Here is the call graph for this function:

menu_delete_menu_page ( menu  ) 

Menu callback; check access and get a confirm form for deletion of a custom menu.

Definition at line 440 of file menu.admin.inc.

References drupal_access_denied(), drupal_get_form(), and menu_list_system_menus().

Here is the call graph for this function:

menu_edit_item ( &$  form_state,
type,
item,
menu 
)

Menu callback; Build the menu link editing form.

Definition at line 226 of file menu.admin.inc.

References $type, l(), and t().

Here is the call graph for this function:

menu_edit_item_submit ( form,
&$  form_state 
)

Process menu and menu item add/edit form submissions.

Definition at line 368 of file menu.admin.inc.

References drupal_set_message(), menu_link_save(), and t().

Here is the call graph for this function:

menu_edit_item_validate ( form,
&$  form_state 
)

Validate form values for a menu link being added or edited.

Definition at line 334 of file menu.admin.inc.

References drupal_get_normal_path(), drupal_set_message(), form_set_error(), menu_path_is_external(), menu_valid_path(), and t().

Here is the call graph for this function:

menu_edit_menu ( &$  form_state,
type,
menu = array() 
)

Menu callback; Build the form that handles the adding/editing of a custom menu.

Definition at line 387 of file menu.admin.inc.

References $type, menu_list_system_menus(), and t().

Here is the call graph for this function:

menu_edit_menu_submit ( form,
&$  form_state 
)

Submit function for adding or editing a custom menu.

Definition at line 520 of file menu.admin.inc.

References $result, db_fetch_array(), db_query(), db_result(), menu_link_load(), and menu_link_save().

Here is the call graph for this function:

menu_edit_menu_validate ( form,
&$  form_state 
)

Validates the human and machine-readable names when adding or editing a menu.

Definition at line 499 of file menu.admin.inc.

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

Here is the call graph for this function:

menu_item_delete_form ( &$  form_state,
item 
)

Build a confirm form for deletion of a single menu link.

Definition at line 562 of file menu.admin.inc.

References t().

Here is the call graph for this function:

menu_item_delete_form_submit ( form,
&$  form_state 
)

Process menu delete form submissions.

Definition at line 570 of file menu.admin.inc.

References drupal_set_message(), menu_link_delete(), t(), and watchdog().

Here is the call graph for this function:

menu_item_delete_page ( item  ) 

Menu callback; Check access and present a confirm form for deleting a menu link.

Definition at line 549 of file menu.admin.inc.

References drupal_access_denied(), and drupal_get_form().

Here is the call graph for this function:

menu_item_delete_submit ( form,
&$  form_state 
)

Submit function for the delete button on the menu item editing form.

Definition at line 361 of file menu.admin.inc.

menu_overview_form ( &$  form_state,
menu 
)

Form for editing an entire menu tree at once.

Shows for one menu the menu items accessible to the current user and relevant operations.

Definition at line 29 of file menu.admin.inc.

References $result, _menu_overview_tree_form(), db_query(), element_children(), menu_tree_check_access(), menu_tree_collect_node_links(), menu_tree_data(), and t().

Here is the call graph for this function:

menu_overview_form_submit ( form,
&$  form_state 
)

Submit handler for the menu overview form.

This function takes great care in saving parent items first, then items underneath them. Saving items in the incorrect order can break the menu tree.

See also:
menu_overview_form()

Definition at line 128 of file menu.admin.inc.

References element_children(), and menu_link_save().

Here is the call graph for this function:

menu_overview_page (  ) 

Menu callback which shows an overview page of all the custom menus and their descriptions.

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

References $content, $result, db_fetch_array(), db_query(), and theme().

Here is the call graph for this function:

menu_reset_item_confirm ( &$  form_state,
item 
)

Menu callback; reset a single modified item.

Definition at line 582 of file menu.admin.inc.

References t().

Here is the call graph for this function:

menu_reset_item_confirm_submit ( form,
&$  form_state 
)

Process menu reset item form submissions.

Definition at line 590 of file menu.admin.inc.

References drupal_set_message(), and t().

Here is the call graph for this function:


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