CCK

Fix for Fix for Creating imagefield content programatically

  1. function sti_migrate_form_submit($form, &$form_state) {
  2.   $form_state = array();
  3.   module_load_include('inc', 'node', 'node.pages');
  4.   $node = array('type' => 'tell_your_story');
  5.   $form_state['va

Fix for Creating imagefield content programatically

  1. function sti_migrate_form_submit($form, &$form_state) {
  2.   $form_state = array();
  3.   module_load_include('inc', 'node', 'node.pages');
  4.   $node = array('type' => 'tell_your_story');
  5.   $form_state['va

Fix for if cck field

  1. if($node-> field_location_street[0]['value']){
  2.                              print '<span class="label">'.t('address').': </span>'.$node->field_location_street['0']['value'];
  3.                        

if cck field

  1. if($node->field_location_land[0]['value']){
  2.                              print '<span class="label">'.t('address').': </span>'.$node->field_location_street['0']['value'];
  3.                            

imagefield.install does not work with filefield.install update ID's

  1. <?php
  2. # imagefield.install
  3.  
  4. /**
  5.  * Convert image field type to filefield.
  6.  */
  7. function imagefield_update_6003() {
  8.   $ret = array();
  9.  
  10.   if (drupal_get_installed_schema_version('filefield', TRU

CCK field not showing up in field selection dialog

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * @file
  6.  * CCK Field to integrate products to nodes
  7.  *
  8.  * Allow products to be associated with a content type and acced to cart on node creation
  9.  */
  10.  
  11. function uc_product_

Fix for Creating imagefield content programatically

  1. function sti_migrate_form_submit($form, &$form_state) {
  2.   $form_state = array();
  3.   module_load_include('inc', 'node', 'node.pages');
  4.   module_load_include('inc', 'filefield', 'field_file');
  5.  
  6.   $n

make node cck fields into a table

  1. /**
  2.  * return cck fields formatted as table
  3.  */
  4. function phptemplate_content_format_table($node){
  5.   // get fields
  6.   $fields = content_fields(NULL, $node->type);
  7.   $header = array('', '');
  8.   $ro

make node cck fields into a table

  1. /**
  2.  * return cck fields formatted as table
  3.  */
  4. function phptemplate_content_format_table($node){
  5.   // get fields
  6.   $fields = content_fields(NULL, $node->type);
  7.   $header = array('', '');
  8.   $ro

make node cck fields into a table

  1. /**
  2.  * return cck fields formatted as table
  3.  */
  4. function energynews_get_cck_table($node){
  5.   // get fields
  6.   $fields = content_fields(NULL, $node->type);
  7.   $header = array('', '');
  8.   $rows = arr
Syndicate content