Contents contributed and discussions participated by Daniel Gregoire
openscholar - 3 views
On RHEL and CentOS. | drupal.org - 0 views
Reducing server resource utilization for busy sites by implementing fast 404s in Drupal... - 3 views
-
// List of extensions for static files $exts = 'txt|png|gif|jpe?g|shtml?|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp|xml'; // It is not an imagecache path, which we allow to go through Drupal if (!strpos($_SERVER['QUERY_STRING'], 'imagecache')) { // It is not our main feed page if ($_SERVER['QUERY_STRING'] != 'rss.xml') { // Is it a static file? if (preg_match('/\.(' . $exts . ')$/', $_SERVER['QUERY_STRING'])) // Just send a 404 right now ... { header('HTTP/1.0 404 Not Found'); print '<html>'; print '<head><title>404 Not Found</title></head>'; print '<body><h1>Not Found</h1>'; print '<p>The requested URL was not found on this server.</p>'; print '</body></html>'; exit(); } } }
Searchlight: A Views-driven Approach to Pluggable Search in Drupal | Development Seed - 5 views
Module Development - Schema Won't Install | drupal.org - 0 views
-
I had similar symptoms ... a simple install file that wouldn't create a table. However, I got it to work by going into the Drupal system table and deleting the record for my module. Then the next time that I enabled my module, Drupal freshly discovered it and ran the .install file to successfully create the table. Summary. When you have a module already in use (and so it appears in the system table), and *then* as a developer you create its .install file, it doesn't look like a *new* installation to Drupal (since the module name was already in the system table), so hook_install never gets called.
-
Trick for schema's that won't install. If you have a custom module that you _had_ installed before making a .install file and including a schema, you need to: (1) Disable your module (2) Uninstall your module (3) Delete your module's row in the 'system' table in your Drupal database. Then you can re-introduce your module, and all its files will be recognized.
Example Varnish VCL for a Drupal / Pressflow site | Drupal - 1 views
How to define page callbacks that you don't want to render using page template in Drupa... - 1 views
-
Method 1 : Printing your stuff and exit
-
Method 2 : Printing your stuff and returning NULL