function entity_delete_log_settings in Entity Delete Log 7
The module's settings form.
1 string reference to 'entity_delete_log_settings'
- entity_delete_log_menu in ./
entity_delete_log.module - Implements hook_menu(). See the entity_delete_log view for the default local task page display.
File
- ./
entity_delete_log.module, line 34 - Saves custom log entry to database when an entity is deleted.
Code
function entity_delete_log_settings() {
// Build the settings form.
$form = array();
// Add some helpful links.
$items = array(
l('View the Entity Delete Log README', drupal_get_path('module', 'entity_delete_log') . '/README.txt'),
l('View the Entity Delete Logs', 'admin/reports/entity-delete-log'),
);
$form['#prefix'] = theme('item_list', array(
'items' => $items,
));
// Provide a list of checkboxes for the user to choose which entity types
// will have delete logging enabled.
$entity_keys = array_keys(entity_get_info());
$form['entity_delete_log_entity_types'] = array(
'#title' => t('Entity Types to Log'),
'#type' => 'checkboxes',
'#options' => drupal_map_assoc($entity_keys),
'#default_value' => variable_get('entity_delete_log_entity_types', array()),
'#description' => t('Select which entity types will be logged when deleted.'),
);
return system_settings_form($form);
}