You are here

function ad_no_global_settings in Advertisement 5

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

Empty page for ad_type modules that don't define a global settings page. This way admins can still set default permissions for this ad type.

2 string references to 'ad_no_global_settings'
ad_form_alter in ./ad.module
Drupal _form_alter() hook.
ad_menu in ./ad.module
Implementation of hook_menu().

File

./ad.module, line 2517
An advertising system for Drupal powered websites.

Code

function ad_no_global_settings() {
  $form = array();
  $form['save'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
  );
  return $form;
}