' . var_export($vars['settings']['view_name'], true) . ''); // drupal_set_message('
' . var_export($vars['content'][0], true) . ''); if ($vars['settings']['view_name'] == 'news_items') { if (!empty($vars['content'])) { foreach ($vars['content'] as $key1 => $result) { // add slide_image variable //initialize & reset path $filepath = FALSE; // try to find a filename (path) to the image, either stored in field_imagepath text field.. if (isset($result->node_data_field_pager_item_text_field_imagepath_value)) { $filepath=$result->node_data_field_pager_item_text_field_imagepath_value; } // .. or stored in files table via ImageField module else if (isset($result->node_data_field_image_field_image_fid)) { // get image id $fid = $result->node_data_field_image_field_image_fid; // get path to image $filepath = db_result(db_query("SELECT filepath FROM {files} WHERE fid = %d", $fid)); } // if filepath was found either via text field or via ImageField module, then // add slide_image variable to the slider_items if ($filepath) { // use imagecache (imagecache, preset_name, file_path, alt, title, array of attributes) if (module_exists('imagecache') && is_array(imagecache_presets()) && $vars['imgcache_slide'] <> '
' . var_export($vars['pager_settings'], true) . ''); // drupal_set_message('
' . var_export($vars['content'][0], true) . ''); if ($vars['pager_settings']['view_name'] == 'news_items') { if (!empty($vars['content'])) { foreach ($vars['content'] as $key1 => $result) { // add pager_item_image variable //initialize & reset path $filepath = FALSE; // try to find a filename (path) to the image, either stored in field_imagepath text field.. if (isset($result->node_data_field_pager_item_text_field_imagepath_value)) { $filepath=$result->node_data_field_pager_item_text_field_imagepath_value; } // .. or stored in files table via ImageField module else if (isset($result->node_data_field_image_field_image_fid)) { $fid = $result->node_data_field_image_field_image_fid; $filepath = db_result(db_query("SELECT filepath FROM {files} WHERE fid = %d", $fid)); } // if filepath was found either via text field or via ImageField module, then // add pager_items image variable if ($filepath) { // use imagecache (imagecache, preset_name, file_path, alt, title, array of attributes) if (module_exists('imagecache') && is_array(imagecache_presets()) && $vars['imgcache_pager_item'] <> '