function domain_test_domain_batch in Domain Access 7.3
Implements hook_domain_batch().
File
- tests/
domain_test.domain.inc, line 92 - Domain hook tests.
Code
function domain_test_domain_batch() {
// A simple function to rename my setting in Domain Configuration.
$batch = array();
$batch['domain_test'] = array(
'#form' => array(
'#title' => t('My Settings'),
'#type' => 'textfield',
'#size' => 40,
'#maxlength' => 80,
'#description' => t('A description for the form'),
'#required' => TRUE,
),
'#permission' => 'administer domains',
'#domain_action' => 'domain_conf',
'#meta_description' => t('Edit my setting value.'),
'#variable' => 'domain_mysetting',
'#validate' => 'domain_mysetting_validate',
'#data_type' => 'string',
'#weight' => 0,
'#group' => t('My settings'),
'#collapsed' => FALSE,
'#update_all' => TRUE,
'#module' => t('Domain Access'),
);
return $batch;
}