field

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

Fix for Fix for Fix for Load array content into multi valued field

  1.     <?php
  2. /**
  3.  * @file
  4.  * isbn2node module
  5.  */
  6.  
  7. // Define the url's for fetching ISBN-data
  8. define('ISBN2NODE_ISBNDB_URL', 'http://isbndb.com/api/books.xml?access_key=%access_key&results=detail

Fix for Fix for Load array content into multi valued field

  1.     <?php
  2. /**
  3.  * @file
  4.  * isbn2node module
  5.  */
  6.  
  7. // Define the url's for fetching ISBN-data
  8. define('ISBN2NODE_ISBNDB_URL', 'http://isbndb.com/api/books.xml?access_key=%access_key&results=detail

Fix for Load array content into multi valued field

  1.          case 'isbn2node_author':
  2.             $authors_array = explode(',', $default_value);
  3.             sort($authors_array);
  4.    
  5.             $rows = 0;
  6.             for ($index = 0; $index < co

Load array content into multi valued field

  1.          case 'isbn2node_author':
  2.             $authors_array = explode(',', $default_value);
  3.             sort($authors_array);
  4.    
  5.             $rows = 0;
  6.             for ($index = 0; $index < co

Create a field

  1. /* I know how to create field, eg. a taxonomy_term_reference */
  2.  
  3. $field = array(
  4.         'field_name' => 'field_' .

Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends

  1. <?php
  2. global $user;
  3. $rtid = 1; //Relationship type ID.
  4. $max = 5; //The amount of users to show on the block.
  5.  
  6. $user_rel = db_query("
  7. SELECT u.uid
  8. FROM {users} u
  9. LEFT JOIN {user_relationships}

Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends of frien

  1. <?php
  2. global $user;
  3. $rtid = 1; //Relationship type ID.
  4. $max = 5; //The amount of users to show on the block.
  5.  
  6. $user_rel = db_query("
  7. SELECT u.uid
  8. FROM {users} u
  9. LEFT JOIN {user_relationships}

Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends of friends code.

  1. <?php
  2. global $user;
  3. $rtid = 1; //Relationship type ID.
  4. $max = 5; //The amount of users to show on the block.
  5.  
  6. $user_rel = db_query("
  7. SELECT u.uid
  8. FROM {users} u
  9. LEFT JOIN {user_relationships}

Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Fix for Friends of friends code. Need u

  1. <?php
  2. global $user;
  3. $rtid = 1; //Relationship type ID.
  4. $max = 5; //The amount of users to show on the block.
  5.  
  6. $user_rel = db_query("
  7. SELECT u.uid
  8. FROM {users} u
  9. LEFT JOIN {user_relationships}
Syndicate content