You are here

function devel_menu_need_token_protection in Devel 7

Returns list of paths which need CSRF token protection.

Return value

array An associative array in which every item is composed in the following way:

  • key: path which need token protection.
  • value: additional value used for generate the token.
2 calls to devel_menu_need_token_protection()
devel_menu_link_alter in ./devel.module
Implements hook_menu_link_alter().
devel_translated_menu_link_alter in ./devel.module
Implements hook_translated_menu_item_alter().

File

./devel.module, line 366
This module holds functions useful for Drupal development.

Code

function devel_menu_need_token_protection() {
  return array(
    'devel/cache/clear' => 'devel-cache-clear',
    'devel/run-cron' => 'run-cron',
  );
}