summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Wehner2011-10-10 21:08:57 (GMT)
committer Daniel Wehner2011-10-10 21:08:57 (GMT)
commitf188b9e0559d240d6aa28ba0c2692e16b418e5e0 (patch)
treed9b3b1bfe2037cd1730a6fb79352c2ffd759b3d5
parent8c5bb8ea6fd12564c78a84ca791366df7c6328af (diff)
by dereine: Two more instances of instead of
-rw-r--r--includes/admin.inc12
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/admin.inc b/includes/admin.inc
index c816215..3b2d8dc 100644
--- a/includes/admin.inc
+++ b/includes/admin.inc
@@ -336,8 +336,8 @@ function views_ui_add_form($form, &$form_state) {
// selected.
$wizard_plugins = views_ui_get_wizards();
$options = array();
- foreach ($wizard_plugins as $key => $w) {
- $options[$key] = $w['title'];
+ foreach ($wizard_plugins as $key => $wizard) {
+ $options[$key] = $wizard['title'];
}
$form['displays']['show']['wizard_key'] = array(
'#type' => 'select',
@@ -674,10 +674,10 @@ function views_ui_nojs_submit($form, &$form_state) {
* Validate the add view form.
*/
function views_ui_wizard_form_validate($form, &$form_state) {
- $w = views_ui_get_wizard($form_state['values']['show']['wizard_key']);
- $form_state['wizard'] = $w;
- $get_instance = $w['get_instance'];
- $form_state['wizard_instance'] = $get_instance($w);
+ $wizard = views_ui_get_wizard($form_state['values']['show']['wizard_key']);
+ $form_state['wizard'] = $wizard;
+ $get_instance = $wizard['get_instance'];
+ $form_state['wizard_instance'] = $get_instance($wizard);
$errors = $form_state['wizard_instance']->validate($form, $form_state);
foreach ($errors as $name => $message) {
form_set_error($name, $message);