You are here

function simplemeta_meta_list in Simple Meta 6.2

Same name and namespace in other branches
  1. 7 simplemeta.admin.inc \simplemeta_meta_list()
1 string reference to 'simplemeta_meta_list'
simplemeta_menu in ./simplemeta.module
Implements hook_menu()

File

./simplemeta.admin.inc, line 18

Code

function simplemeta_meta_list() {
  $info = simplemeta_get_info();
  $query = "SELECT s.* FROM {simplemeta} s ORDER BY s.sid DESC";
  $count_query = "SELECT COUNT(s.sid) FROM {simplemeta} s";
  $pager_per_page = 20;
  $pager_element = 0;
  $result = pager_query($query, $pager_per_page, $pager_element, $count_query);
  $items = array();
  while ($meta = db_fetch_object($result)) {
    $meta->data = unserialize($meta->data);
    $items[] = $meta;
  }
  return theme('simplemeta_meta_list', $items) . theme_pager(array(), $pager_per_page, $pager_element);
}