Commit 146d59c8 authored by sun's avatar sun

by sun: Fixed length of form button captions on snapshot management form.

parent b329df6e
......@@ -6,6 +6,7 @@ Demo x.x-x.x, xxxx-xx-xx
Demo 5.x-1.x, xxxx-xx-xx
------------------------
by sun: Fixed length of form button captions on snapshot management form.
#370402 by sun: Added option to download snapshot files.
#294879 by sun: Changed include file inclusion.
#496620 by evoltech: Fixed paths in README.txt.
......
......@@ -85,22 +85,22 @@ function demo_manage() {
$form = array_merge_recursive($form, demo_get_dumps());
$form[] = array(
'#type' => 'submit',
'#value' => t('Set as default snapshot for cron'),
'#value' => t('Use for cron runs'),
);
$form[] = array(
'#type' => 'submit',
'#value' => t('Delete selected snapshot'),
'#value' => t('Delete'),
);
return $form;
}
function demo_manage_submit($form_id, $values) {
switch ($values['op']) {
case t('Set as default snapshot for cron'):
case t('Use for cron runs'):
demo_set_default($values['filename']);
break;
case t('Delete selected snapshot'):
case t('Delete'):
return 'admin/build/demo/delete/' . $values['filename'];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment