The images are currently missing. I guess it 's best to remove them altogether and leave that up to CSS.

        $day_part_status = array(
          TRUE => array(
            'icon' => 'icon-tick.png',
            'alt' => t('available'),
          ),
          FALSE => array(
            'icon' => 'icon-cross.png',
            'alt' => t('unavailable'),
          ),
        );
        $image = array(
          'path' => drupal_get_path('module', 'appointments') . '/images/' . $day_part_status[$day_part_available]['icon'],
          'alt' => $day_part_status[$day_part_available]['alt'],
        );
        $day_part_image = '<span class="day-part-image ' . $image_class . '">' . theme('image', $image) . '</span>';
        $day_part_content = '<div class="day-part">' . $day_part_prefix . ' ' . $day_part_image . '</div>';

Comments

MrHaroldA created an issue. See original summary.

mrharolda’s picture

Issue summary: View changes
mrharolda’s picture

Status: Active » Needs review
StatusFileSize
new2.69 KB

Here's a patch that removes a lot of (legacy) cruft from theme_dvg_appointments_date_time().

mrharolda’s picture

StatusFileSize
new3.15 KB

Slightly improved patch: removed even more shizzle ;)

mrharolda’s picture

Title: Remove (missing) images » Clean up theme_dvg_appointments_date_time()
mrharolda’s picture

StatusFileSize
new3.29 KB

Another better-er patch ;)

  • MrHaroldA committed e04f0bb on 7.x-1.x
    Issue #2606336: Clean up theme_dvg_appointments_date_time()
    
mrharolda’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.