You are here

function theme_imageeditor_widget_editors in Image Editor 6

1 theme call to theme_imageeditor_widget_editors()
theme_imageeditor_widget in ./imageeditor.module

File

./imageeditor.module, line 474
Allows online editing of images using different image editing services.

Code

function theme_imageeditor_widget_editors($status, $widget) {
  $imageeditors = imageeditor_editors();
  $imageeditors_sort = array();
  foreach ($imageeditors as $codename => $name) {
    $imageeditors_sort[$codename] = $widget[$codename . '_position'];
  }
  asort($imageeditors_sort);
  $html = '<div class="editors">';
  foreach ($imageeditors_sort as $codename => $position) {
    if ($widget[$codename . '_enabled'] && ($codename != 'aviary_feather' || $status == 'existing')) {
      $html .= theme('imageeditor_widget_item', $imageeditors[$codename]['name'], $imageeditors[$codename]['class']);
    }
  }
  $html .= '</div>';
  return $html;
}