function panels_list_page in Panels 5
Provide a list of panels, with links to edit or delete them.
1 string reference to 'panels_list_page'
- panels_menu in ./
panels.module - Implementation of hook_menu()
File
- ./
panels.module, line 191
Code
function panels_list_page() {
$result = db_query("SELECT * FROM {panels_info} ORDER BY title");
while ($panels = db_fetch_object($result)) {
$item = array();
$item[] = check_plain($panels->title);
$item[] = l($panels->path, $panels->path);
$item[] = implode(' | ', array(
l(t('Edit'), "admin/build/panels/edit/{$panels->did}"),
l(t('Delete'), "admin/build/panels/delete/{$panels->did}"),
));
$items[] = $item;
}
$header = array(
t('Panel title'),
t('URL'),
t('Operations'),
);
$output = theme('table', $header, $items);
return $output;
}