Below you have instruction how to display full SQL query in Views module in Drupal. Download and enable Devel module Open file views/plugins/views_plugin_query_default.inc In class views_plugin_query_default find method query($get_count = FALSE) In method query() before return add line: dpq($query); Example code:
31.03.2015CompanyBusiness & PM
We are a proud sponsor of the Drupal Camp Wrocław 2015 in Poland. DrupalCamp Wrocław 2015 is a conference organized for Drupal community and others interested in the software. For three days (Friday, Saturday and Sunday), there will be lectures and workshops given by the Drupal experts. The conference is free to attend. More details on conference website http://www.drupalcampwroclaw.pl/
This list is a handy basic tool to quickly find out how well was a Drupal webiste built. It is by no means comprehensive, as a full audit has to take into account particular websites specifics but it is a really good indicator of what you are up against. It a websites fails on many of items on this list, this should raise a red flag.
When you use code driven development on websites based on Drupal sometimes you have to create a menu or a menu item programmatically in hook_update_N. The below code snippets show you how to do that in Drupal 7.
Recently, while working on a migration to drupal I encountered a new problem with drupal database abstraction layer. It turns out that drupal dynamic select queries do not escape column names. This problem does not touch each database type, but it definitely can be problematic when it comes to mysql $query = Database::getConnection('default', 'legacy') ->select('prod_group', 'pg') ->fields('pg', array('porductid, 'active', 'order'));
Session at DrupalCamp Wrocław 2013
On Debian, apache installed from repositories, has mod_expires turned off by defauls. This seriusly increases server load. So what does mod_expires do? It "controls the setting of the Expires HTTP header and the max-age directive of the Cache-Control HTTP header"... Let me explain. The module allows apache to inform clients (eg. You browser) about the length of time a particular asset can treated as valid.