function domain_select_format in Domain Access 7.2
Same name and namespace in other branches
- 6.2 domain.module \domain_select_format()
- 7.3 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().
File
- ./
domain.module, line 1023 - 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);
}