d7

Print Image URL

  1. /**
  2.  *
  3.  * I'm trying render just the URL of an image from a field on a node in D7.
  4.  *
  5.  * The field is named "field_leaderboard_img" and the image style is "leaderboard"
  6.  *
  7.  */
  8.  
  9. <?php print ima

export per mail

  1. $my_module = 'klicket';
  2.       $my_mail_token = 'klicket-export';
  3.       $from = variable_get('kulturschuppen export bot', 'info@kulturschuppen.ch');
  4.       $message = array(
  5.         'id' => $my_modu

Fix for Views: Two body fields issue - content duplication

  1. SELECT node.nid AS nid, node.language AS node_language, node_field_data_field_school_reference.title AS node_field_data_field_school_reference_title, node_field_data_field_school_reference.nid AS node

Views: Two body fields issue - content duplication

  1. SELECT node.nid AS nid, node.language AS node_language, node_field_data_field_school_reference.title AS node_field_data_field_school_reference_title, node_field_data_field_school_reference.nid AS node

Fix for Fix for Fix for Fix for retrieve field result from node

  1. // Example code to return the data for node 15 -- a change_request content_type.
  2. // The manager field uses the CCK user_reference field
  3. // The assigned is just a text field for comparison
  4.  
  5.   $myen

Fix for Fix for Fix for retrieve field result from node

  1. // Example code to return the data for node 15 -- a change_request content_type.
  2. // The manager field uses the CCK user_reference field
  3. // The assigned is just a text field for comparison
  4.  
  5.   $myen

Fix for Fix for retrieve field result from node

  1. // Example code to return the data for node 15 -- a change_request content_type.
  2. // The manager field uses the CCK user_reference field
  3. // The assigned is just a text field for comparison
  4.  
  5.   $myen

Fix for retrieve field result from node

  1.   $myentity = new stdClass();
  2.   $myentity->id = 15;
  3.   $myentity->bundle = 'change_request';
  4.   field_attach_load('node', array($myentity->id => $myentity));
  5.   $manager = $myentity->field_request_ma

retrieve field result from node

  1.   $myentity = new stdClass();
  2.   $myentity->id = 14;
  3.   $myentity->bundle = 'change_request';
  4.   field_attach_load('node', array($myentity->id => $myentity));
  5.   $data = $myentity->field_request_manag

Fix for Fix for bootstrap errors

  1. Notice: Use of undefined constant DRUPAL_ROOT - assumed 'DRUPAL_ROOT' in /var/www/user/public_html/includes/bootstrap.inc on line 1838
  2.  
  3. Warning: require_once(DRUPAL_ROOT/includes/errors.inc): faile
Syndicate content