You are here

function node_gallery_config_list in Node Gallery 6.2

Same name and namespace in other branches
  1. 6 node_gallery.admin.inc \node_gallery_config_list()

@file Node gallery admin page file

Return value

unknown

1 string reference to 'node_gallery_config_list'
node_gallery_menu in ./node_gallery.module
Implementation of hook_menu().

File

./node_gallery.admin.inc, line 9
Node gallery admin page file

Code

function node_gallery_config_list() {
  $ng_configs = node_gallery_get_config();
  if (!empty($ng_configs)) {
    $headers = array(
      t('Gallery Name'),
      t('Gallery type'),
      t('Image type'),
      t('Operations'),
    );
    foreach ($ng_configs as $key => $config) {
      $rows[] = array(
        $config['name'],
        $config['gallery_type'],
        $config['image_type'],
        theme('links', node_gallery_config_operations($key)),
      );
    }
    return theme('table', $headers, $rows, array(
      'class' => 'node-gallery-config-list',
    ));
  }
  else {
    return t("There's no gallery type now.");
  }
}