function _encrypt_admin_form_add_options in Encrypt 7.3
Same name and namespace in other branches
- 7.2 includes/encrypt.admin.inc \_encrypt_admin_form_add_options()
Add other elements to forms.
1 call to _encrypt_admin_form_add_options()
- encrypt_config_form in includes/
encrypt.admin.inc - Form constructor for the configuration edit form.
File
- includes/
encrypt.admin.inc, line 467 - This file holds the functions for the Encrypt admin settings.
Code
function _encrypt_admin_form_add_options($items, &$element) {
foreach ($items as $id => $item) {
$element[$id] = array(
'#description' => $item['description'],
'#disabled' => !empty($item['dependency errors']),
);
// Add a list of dependency errors (if there are any).
if (!empty($item['dependency errors'])) {
$element[$id]['#description'] .= theme('item_list', array(
'items' => $item['dependency errors'],
'attributes' => array(
'class' => 'encrypt-dependency-errors',
),
));
}
}
}