You are here

function ad_no_global_settings in Advertisement 6

Same name and namespace in other branches
  1. 5.2 ad.module \ad_no_global_settings()
  2. 5 ad.module \ad_no_global_settings()
  3. 6.3 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_add_global_settings in ./ad.module
Load settings for all ad modules. Those modules, who don't have their settings form, will get a standard one.
ad_owners_form_alter in owners/ad_owners.module
Implementation of hook_form_alter().

File

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

Code

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