|
|
|
@ -579,13 +579,13 @@ function _fulcrm_campaign_admin_campaign_sync_build( $fcid, $fetch = false, $err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ( $quick ) {
|
|
|
|
|
$campaign[ 'd' ][ 'fms_content' ] = '...Drupal content data goes here...';
|
|
|
|
|
$campaign[ 'd' ][ 'fms_content_list' ] = '...Drupal content references go here...';
|
|
|
|
|
$campaign[ 'd' ][ 'drupal_content' ] = '...Drupal content data goes here...';
|
|
|
|
|
$campaign[ 'd' ][ 'drupal_content_list' ] = '...Drupal content references go here...';
|
|
|
|
|
} else {
|
|
|
|
|
$old_user = $user;
|
|
|
|
|
$user = user_load( variable_get( 'fulcrm_uid', 0 ) );
|
|
|
|
|
|
|
|
|
|
$fms_content = array();
|
|
|
|
|
$drupal_content = array();
|
|
|
|
|
|
|
|
|
|
$query = db_select( 'fulcrm_campaign_node' )
|
|
|
|
|
->fields( 'fulcrm_campaign_node', array( 'nid' ) )
|
|
|
|
@ -619,7 +619,7 @@ function _fulcrm_campaign_admin_campaign_sync_build( $fcid, $fetch = false, $err
|
|
|
|
|
$v[ 'is_image_field?' ] = TRUE;
|
|
|
|
|
$v[ $lang ][ $i ][ 'is_image?' ] = TRUE;
|
|
|
|
|
foreach ( image_styles() as $imagestyle => $styledata ) {
|
|
|
|
|
$v[ $lang ][ $i ][ 'image_style_' . $imagestyle . '_url_absolute' ] = url( $image_style_url( $imagestyle, $v[ $lang ][ $i ][ 'uri' ] ), array( 'absolute' => TRUE ) );
|
|
|
|
|
$v[ $lang ][ $i ][ 'image_style_' . $imagestyle . '_url' ] = url( image_style_url( $imagestyle, $v[ $lang ][ $i ][ 'uri' ] ), array( 'absolute' => TRUE ) );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -631,13 +631,13 @@ function _fulcrm_campaign_admin_campaign_sync_build( $fcid, $fetch = false, $err
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$fms_content[ 'node_' . $node->nid ] = $node_data;
|
|
|
|
|
$drupal_content[ 'node_' . $node->nid ] = $node_data;
|
|
|
|
|
$campaign[ $row->name ] = $row->value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$campaign[ 'd' ][ 'fms_content' ] = $fms_content;
|
|
|
|
|
$campaign[ 'd' ][ 'fms_content_list' ] = array_keys( $fms_content );
|
|
|
|
|
$campaign[ 'd' ][ 'drupal_content' ] = $drupal_content;
|
|
|
|
|
$campaign[ 'd' ][ 'drupal_content_list' ] = array_keys( $drupal_content );
|
|
|
|
|
|
|
|
|
|
$user = $old_user;
|
|
|
|
|
}
|
|
|
|
|