views

block to filter by contextual field

  1. $view = new view;
  2. $view->name = 'bloco_cidade';
  3. $view->description = '';
  4. $view->tag = 'default';
  5. $view->base_table = 'node';
  6. $view->human_name = 'bloco_cidade';
  7. $view->core = 7;
  8. $view->api_vers

A view of all nodes by current user's 'user terms'. Can be used to create a custom front page for each user.

  1. $view = new view;
  2. $view->name = 'New_Front';
  3. $view->description = 'newfront';
  4. $view->tag = '';
  5. $view->base_table = 'node';
  6. $view->core = 0;
  7. $view->api_version = '2';
  8. $view->disabled = FALSE; /*

Views Users

  1. $view = new view;
  2. $view->name = 'users';
  3. $view->description = '';
  4. $view->tag = 'default';
  5. $view->base_table = 'users';
  6. $view->human_name = 'users';
  7. $view->core = 7;
  8. $view->api_version = '3.0-al

query to translate to view relationship

  1. SELECT
  2. d.faculty_area, d.indicator_id,
  3. d1.faculty_area, d1.indicator_id,
  4. d2.faculty_area, d2.indicator_id,
  5. n.*
  6.  FROM `node` n
  7. LEFT JOIN qs_survey_data d ON (d.nid = n.nid)
  8. LEFT JOIN qs_surv

theme error views-view.tpl.php

  1. Uncaught exception thrown in session handler.
  2.  
  3. PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, l

Get theme path for use inside views global text fields

  1. function hook_views_pre_view(&$view, &$display_id) {
  2.   if ($view->name == 'news' && $display_id == 'page')
  3.   {
  4.     $opts = $view->get_item($display_id, 'field', 'nothing');
  5.     $opts['alter']['tex

Views, allow to disable grouping on a per "field" base.

  1. diff --git a/modules/field/views_handler_field_field.inc b/modules/field/views_handler_field_field.inc
  2. index 26c54fc..1bd021a 100644
  3. --- a/modules/field/views_handler_field_field.inc
  4. +++ b/modules/

Title enable is assumed: after importing

  1. $view = new view;
  2. $view->name = 'clone';
  3. $view->description = 'Newest group members.';
  4. $view->tag = 'og';
  5. $view->base_table = 'users';
  6. $view->human_name = 'Clone of OG members';
  7. $view->core = 0;

Title enable is assumed: before importing

  1. $view = new view;
  2. $view->name = 'clone_of_og_members';
  3. $view->description = 'Newest group members.';
  4. $view->tag = 'og';
  5. $view->base_table = 'users';
  6. $view->human_name = 'Clone of OG members';
  7. $v

Views contextual filter title override changes are not noticed by features

  1. <?php
  2. /**
  3.  * @file
  4.  * clone.views_default.inc
  5.  */
  6.  
  7. /**
  8.  * Implements hook_views_default_views().
  9.  */
  10. function clone_views_default_views() {
  11.   $export = array();
  12.  
  13.   $view = new view;
  14.   $vi
Syndicate content