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
| <?php | |
| /** | |
| * Implementation of hook_views_query_alter(). | |
| */ | |
| function modulename_views_query_alter(&$view, &$query) { | |
| if ($view->name == 'viewname') { | |
| $type_clause = FALSE; | |
| // check to see if we already have a node.type clause | |
| foreach ($query->where[0]['clauses'] as $clause) { | |
| if (substr(0, 10, $clause) == 'node.type ') { |
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
| <?php if ($submitted): ?> | |
| <span class="submitted"><?php echo format_date($node->created, 'custom', 'd M Y') ?></span> | |
| <?php endif; ?> |
NewerOlder