You are here

function ad_admin_list in Advertisement 6.2

Same name and namespace in other branches
  1. 5.2 ad.module \ad_admin_list()
  2. 5 ad.module \ad_admin_list()
  3. 6.3 ad.admin.inc \ad_admin_list()
  4. 6 ad.admin.inc \ad_admin_list()
  5. 7 ad.admin.inc \ad_admin_list()

Build default ad administration page.

1 string reference to 'ad_admin_list'
ad_menu in ./ad.module
Implementation of hook_menu().

File

./ad.admin.inc, line 14
Advertisement admin pages and functions.

Code

function ad_admin_list() {
  _ad_check_installation();
  $output = drupal_get_form('ad_filter_form');
  if (isset($_POST['operation']) && $_POST['operation'] == 'delete' && isset($_POST['ads'])) {
    return drupal_get_form('ad_multiple_delete_confirm');
  }
  $output .= drupal_get_form('ad_admin_ads');
  return $output;
}