You are here

function quicktabs_list in Quick Tabs 6

Same name and namespace in other branches
  1. 5 quicktabs.module \quicktabs_list()
  2. 6.3 includes/admin.inc \quicktabs_list()
  3. 6.2 includes/admin.inc \quicktabs_list()
  4. 7.3 quicktabs.admin.inc \quicktabs_list()
  5. 7.2 includes/admin.inc \quicktabs_list()
1 string reference to 'quicktabs_list'
quicktabs_menu in ./quicktabs.module
Implementation of hook_menu().

File

./quicktabs.module, line 100

Code

function quicktabs_list() {
  $result = db_query('SELECT * FROM {quicktabs}');
  $header = array(
    t('Quick Tabs Block Name'),
    t('Delete'),
  );
  $rows = array();
  while ($row = db_fetch_object($result)) {
    $tablerow = array(
      array(
        'data' => $row->title . ' (' . l('edit', 'admin/build/quicktabs/edit/' . $row->qtid) . ')',
      ),
      array(
        'data' => l(t('Delete'), 'admin/build/quicktabs/delete/' . $row->qtid),
      ),
    );
    $rows[] = $tablerow;
  }
  $output = theme('table', $header, $rows, array(
    'id' => 'quicktabs',
  ));
  return $output;
}