![]() Go to Administer → Build → Modules and enable the Devel module.Download and install the latest version of the Devel module from.See the Drupal handbook for more information. These modules are not covered in this guide. (Note that this module doesn’t work if Drupal for Firebug is enabled.) Theme developer: Displays theme API information for theme developers.Devel generate: Generates dummy users, nodes, and taxonomy terms.In addition to the core module, the Devel package contains some other useful modules: Post corrections or additions in the issue queue. This guide has a companion module available at. It covers the Devel contrib module, the Drupal for Firebug contrib module and Firefox extension, the FirePHP library, and the combination of NetBeans and Xdebug. See devel_translated_menu_link_alter().This page gives a brief overview of some of the tools you can use to make Drupal development and debugging easier. * This is more robust that setting alter in hook_menu(). Flag this link as needing alter at display time. * An implementation of hook_menu_link_alter(). Return array('devel/cache/clear', 'devel/reinstall', 'devel/menu/reset', 'admin/og/og', 'devel/variable', 'admin/reports/status/run-cron') 'page callback' => 'devel_theme_registry', 'description' => 'View a list of available theme functions across the whole site.', 'page callback' => 'devel_render_object', 'access arguments' => array('administer site configuration'), 'page arguments' => array('devel_admin_settings'), The devel blocks can be managed via the block administration page.', 'description' => 'Helper functions, pages, and blocks to assist Drupal developers. 'access arguments' => array('switch users'), 'description' => 'List the contents of $_SESSION.', 'page arguments' => array('devel_variable_edit', 3), 'page callback' => 'devel_elements_page', 'description' => 'View the active form/render elements for this site.', 'access arguments' => array('execute php code'), 'page arguments' => array('devel_execute_form'), 'description' => 'Execute some PHP code', 'description' => 'View your server\'s PHP configuration', we don't want the abbreviated version provided by status report 'page callback' => 'devel_variable_page', 'description' => 'Edit and delete site variables.', 'page arguments' => array('devel_menu_rebuild'), All menu items return to their default settings.', 'description' => 'Rebuild menu based on hook_menu() and revert any custom changes. 'access arguments' => array('display source code'), 'page callback' => 'devel_display_source', 'title' => 'Display the PHP code of any file in your Drupal installation', 'description' => 'Run hook_uninstall() and then hook_install() for a given module.', 'page arguments' => array('devel_reinstall'), 'page callback' => 'devel_function_reference', 'description' => 'View a list of currently defined user functions with documentation links.', 'page callback' => 'devel_queries_empty', 'access callback' => 'devel_menu_access_store_queries', 'access arguments' => array('access devel information'), 'description' => 'Clear the CSS cache and all database cache tables which store page, node, theme and variable caches.', note: we can't dynamically append destination to querystring. Variables that are too long can slow down your pages.', => " => ". These variables are usually accessed with variable_get() and variable_set(). t('This is a list of the variables and their values currently stored in variables table and the $conf array of your settings.php file. $api = variable_get('devel_api_url', '') t('Here are the contents of your $_SESSION variable.'). Click on a function name to view its documention.'). t('This is a list of defined user functions that generated this current request lifecycle. The devel.module Drupal example source code
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |