You are here

function domain_select_format in Domain Access 7.3

Same name and namespace in other branches
  1. 6.2 domain.module \domain_select_format()
  2. 7.2 domain.module \domain_select_format()

Determine the default format for domain list forms.

7 calls to domain_select_format()
domain_configure_form in ./domain.admin.inc
FormsAPI for configuring the domain module.
domain_content_add_form_widget in domain_content/domain_content.module
Abstraction function for selecting domains for batch operations.
domain_form_alter in ./domain.module
Implements hook_form_alter().
domain_form_devel_generate_content_form_alter in ./domain.module
Add settings to devel generate module.
domain_form_user_admin_account_alter in ./domain.module
Implements hook_form_alter().

... See full list

1 string reference to 'domain_select_format'
domain_uninstall in ./domain.install
Implements hook_uninstall().

File

./domain.module, line 1292
Core module functions for the Domain Access suite.

Code

function domain_select_format() {
  $domains = domain_domains();
  $format = 0;
  if (count($domains) > variable_get('domain_list_size', DOMAIN_LIST_SIZE)) {
    $format = 1;
  }
  return variable_get('domain_select_format', $format);
}