summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohsen Pouryazdan2013-02-04 20:39:27 (GMT)
committer Mohsen Pouryazdan2013-02-04 20:39:27 (GMT)
commitf9c80ff7eacdfafa56d1da8caddedc2d420a6403 (patch)
treec183a071656cefcd73938a6f334de916fad37508
parentff343f523852cc5073ce4efdeb4dddc69d0a20f9 (diff)
Fixing coding standards
-rw-r--r--flashgame.module34
1 files changed, 17 insertions, 17 deletions
diff --git a/flashgame.module b/flashgame.module
index fd92230..fa47c5d 100644
--- a/flashgame.module
+++ b/flashgame.module
@@ -59,17 +59,17 @@ function flashgame_field_formatter_info() {
'miniclip' => array(
'label' => t('Miniclip game'),
'field types' => array('text'),
- ),
- 'flash' => array(
- 'label' => t('Flash'),
- 'description' => t('For show as a flash file'),
- 'field types' => array('file'),
- 'settings' => array(
- 'width' => 640,
- 'height' => 480,
- ),
- ),
- );
+ ),
+ 'flash' => array(
+ 'label' => t('Flash'),
+ 'description' => t('For show as a flash file'),
+ 'field types' => array('file'),
+ 'settings' => array(
+ 'width' => 640,
+ 'height' => 480,
+ ),
+ ),
+ );
}
/**
@@ -84,13 +84,13 @@ function flashgame_field_formatter_settings_form($field, $instance, $view_mode,
'#type' => 'textfield',
'#size' => 20,
'#default_value' => 640,
- ),
+ ),
'height' => array(
'#title' => t('height'),
'#type' => 'textfield',
'#size' => 20,
'#default_value' => 480,
- ),
+ ),
);
return $element;
}
@@ -126,15 +126,15 @@ function flashgame_field_formatter_view($entity_type, $entity, $field, $instance
$element[$delta] = array('#markup' => $embed);
}
break;
-
- case 'flash':
- foreach ($items as $delta => $item) {
+
+ case 'flash':
+ foreach ($items as $delta => $item) {
$url = empty($item['uri']) ? '' : file_create_url($item['uri']);
$embed = '<embed src = "' . $url . '" width = "' . $settings['width'] . '" height = "' . $settings['height'] . '" />';
$element[$delta] = array('#markup' => $embed);
}
break;
-
+
}
return $element;
}