function backup_migrate_memory_limit_validate in Backup and Migrate 7.3
Validate fields that require a PHP.ini-like memory_limit value.
2 string references to 'backup_migrate_memory_limit_validate'
- backup_migrate_ui_advanced_settings_form in ./
backup_migrate.advanced_settings.inc - The advanced settings form.
- BmTestBasics::testFieldValidators in tests/
BmTestBasics.test - Test the custom validators.
File
- ./
backup_migrate.advanced_settings.inc, line 160 - Functionality required for the advanced settings form.
Code
function backup_migrate_memory_limit_validate($element, &$form_state, $form) {
if (!_backup_migrate_is_valid_memory_limit($element['#value'])) {
form_error($element, t('%name must be a valid memory limit setting.', array(
'%name' => $element['#title'],
)));
}
}