You are here

function ad_no_global_settings in Advertisement 5.2

Same name and namespace in other branches
  1. 5 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_menu in ./ad.module
Implementation of hook_menu().
ad_permission_form_alter in permission/ad_permission.module
Drupal _form_alter() hook.

File

./ad.module, line 2082
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;
}