Commit 64def7cb authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#100641 by kkaefer, ChrisKennedy and RobRoy: change 'Submit' buttons to 'Save'...

#100641 by kkaefer, ChrisKennedy and RobRoy: change 'Submit' buttons to 'Save' to compliy with the desktop metaphor and actually tell what the button does ('we know it submits the form, but what it does?')
parent 4a65afa1
......@@ -932,7 +932,7 @@ function install_configure_form() {
$form['submit'] = array(
'#type' => 'submit',
'#value' => st('Submit'),
'#value' => st('Save'),
'#weight' => 15,
);
$hook_form_alter = $_GET['profile'] .'_form_alter';
......
......@@ -344,7 +344,7 @@ function aggregator_form_category($edit = array('title' => '', 'description' =>
'#title' => t('Description'),
'#default_value' => $edit['description'],
);
$form['submit'] = array('#type' => 'submit', '#value' => t('Submit'));
$form['submit'] = array('#type' => 'submit', '#value' => t('Save'));
if ($edit['cid']) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'));
......@@ -358,7 +358,7 @@ function aggregator_form_category($edit = array('title' => '', 'description' =>
* Validate aggregator_form_feed form submissions.
*/
function aggregator_form_category_validate($form, &$form_state) {
if ($form_state['values']['op'] == t('Submit')) {
if ($form_state['values']['op'] == t('Save')) {
// Check for duplicate titles
if (isset($form_state['values']['cid'])) {
$category = db_fetch_object(db_query("SELECT cid FROM {aggregator_category} WHERE title = '%s' AND cid != %d", $form_state['values']['title'], $form_state['values']['cid']));
......@@ -478,7 +478,7 @@ function aggregator_form_feed($edit = array('refresh' => 900, 'title' => '', 'ur
'#description' => t('New items in this feed will be automatically filed in the checked categories as they are received.'),
);
}
$form['submit'] = array('#type' => 'submit', '#value' => t('Submit'));
$form['submit'] = array('#type' => 'submit', '#value' => t('Save'));
if ($edit['fid']) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'));
......@@ -492,7 +492,7 @@ function aggregator_form_feed($edit = array('refresh' => 900, 'title' => '', 'ur
* Validate aggregator_form_feed form submissions.
*/
function aggregator_form_feed_validate($form, &$form_state) {
if ($form_state['values']['op'] == t('Submit')) {
if ($form_state['values']['op'] == t('Save')) {
// Check for duplicate titles
if (isset($form_state['values']['fid'])) {
$result = db_query("SELECT title, url FROM {aggregator_feed} WHERE (title = '%s' OR url='%s') AND fid != %d", $form_state['values']['title'], $form_state['values']['url'], $form_state['values']['fid']);
......
......@@ -69,7 +69,7 @@ function contact_admin_edit($form_state = array(), $op, $contact = NULL) {
'#value' => $contact['cid'],
);
$form['submit'] = array('#type' => 'submit',
'#value' => t('Submit'),
'#value' => t('Save'),
);
return $form;
......
......@@ -475,7 +475,7 @@ function forum_form_container(&$form_state, $edit = array()) {
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit')
'#value' => t('Save')
);
if ($edit['tid']) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'));
......@@ -534,7 +534,7 @@ function forum_form_forum(&$form_state, $edit = array()) {
);
$form['vid'] = array('#type' => 'hidden', '#value' => variable_get('forum_nav_vocabulary', ''));
$form['submit' ] = array('#type' => 'submit', '#value' => t('Submit'));
$form['submit' ] = array('#type' => 'submit', '#value' => t('Save'));
if ($edit['tid']) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'));
$form['tid'] = array('#type' => 'hidden', '#value' => $edit['tid']);
......
......@@ -323,7 +323,7 @@ function menu_edit_item(&$form_state, $type, $item, $menu) {
'#default_value' => $item['weight'],
'#description' => t('Optional. In the menu, the heavier items will sink and the lighter items will be positioned nearer the top.'),
);
$form['submit'] = array('#type' => 'submit', '#value' => t('Submit'));
$form['submit'] = array('#type' => 'submit', '#value' => t('Save'));
return $form;
......@@ -428,7 +428,7 @@ function menu_edit_menu(&$form_state, $type, $menu = array()) {
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
'#value' => t('Save'),
);
return $form;
......
......@@ -2210,7 +2210,7 @@ function node_form(&$form_state, $node) {
);
$form['buttons']['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
'#value' => t('Save'),
'#weight' => 10,
'#submit' => array('node_form_submit'),
);
......
......@@ -292,7 +292,7 @@ function taxonomy_form_vocabulary(&$form_state, $edit = array()) {
'#description' => t('In listings, the heavier vocabularies will sink and the lighter vocabularies will be positioned nearer the top.'),
);
$form['submit'] = array('#type' => 'submit', '#value' => t('Submit'));
$form['submit'] = array('#type' => 'submit', '#value' => t('Save'));
if (isset($edit['vid'])) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'));
$form['vid'] = array('#type' => 'value', '#value' => $edit['vid']);
......@@ -459,7 +459,7 @@ function taxonomy_form_term(&$form_state, $vocabulary, $edit = array()) {
'#value' => $vocabulary->vid);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'));
'#value' => t('Save'));
if ($edit['tid']) {
$form['delete'] = array(
......
......@@ -1614,7 +1614,7 @@ function user_edit($form_state, $category = 'account') {
$form = _user_forms($edit, $account, $category);
$form['_category'] = array('#type' => 'value', '#value' => $category);
$form['_account'] = array('#type' => 'value', '#value' => $account);
$form['submit'] = array('#type' => 'submit', '#value' => t('Submit'), '#weight' => 30);
$form['submit'] = array('#type' => 'submit', '#value' => t('Save'), '#weight' => 30);
if (user_access('administer users')) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'), '#weight' => 31);
}
......
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