This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Clean URL for files in Drupal | |
| # | |
| # Replace : http://www.site.com/sites/default/files/myfile.txt | |
| # by : http://www.site.com/files/myfile.txt | |
| # Be careful to put this rule before any other blocking rule. | |
| RewriteRule ^files/(.*)$ /sites/default/files/$1 [L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function MODULE_node_view($node, $view_mode, $langcode) { | |
| if ($view_mode == 'full' && node_is_page($node)) { | |
| //It is safe to call drupal_goto() from here | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $task = rules_scheduler_task_load([tid]); | |
| rules_scheduler_run_task($task); |
NewerOlder