function workbench_access_install_form in Workbench Access 7
Confirm install of the sample configuration.
1 string reference to 'workbench_access_install_form'
- workbench_access_menu in ./
workbench_access.module - Implements hook_menu().
File
- ./
workbench_access.admin.inc, line 1045 - Workbench Access admin file.
Code
function workbench_access_install_form($form, &$form_state, $path = 'admin/config/workbench/access/settings') {
$actions['items'] = array(
t('Creates a sample <em>Museum</em> vocabulary.'),
t('Creates taxonomy terms in that vocabulary.'),
t('Enables all terms as site editorial sections.'),
t('Assigns all site content to the <em>Museum</em> section.'),
t('Assigns user 1 to the <em>Museum</em> section.'),
);
$form['help'] = array(
'#markup' => t('The sample installation will perform the following actions: !actions', array(
'!actions' => theme('item_list', $actions),
)),
);
$form['path'] = array(
'#type' => 'value',
'#value' => $path,
);
$question = t('Are you sure you want to install the test configuration?');
return confirm_form($form, $question, $path);
}