You are here

function theme_imageeditor_settings_form in Image Editor 6

File

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

Code

function theme_imageeditor_settings_form($form) {
  $output = '';
  $output .= drupal_render($form['title']);
  $header = array(
    t('Name'),
    t('API key'),
    t('Description'),
    t('Get API key'),
  );
  $rows = array();
  foreach (imageeditor_api_keys() as $codename => $api_key) {
    $row = array();
    $row[] = drupal_render($form[$codename . '_display_name']);
    $row[] = drupal_render($form[$codename]);
    $row[] = drupal_render($form[$codename . '_description']);
    $row[] = drupal_render($form[$codename . '_link']);
    $rows[] = array(
      'data' => $row,
    );
  }
  $output .= theme('table', $header, $rows);
  $output .= drupal_render($form);
  return $output;
}