Make sure the item is actually a video...
Signed-off-by: Bharat Mediratta <bharat@menalto.com>
This commit is contained in:
parent
e48e0dddea
commit
d7ed217763
@ -20,10 +20,12 @@
|
|||||||
class videodimensions_event_Core {
|
class videodimensions_event_Core {
|
||||||
static function item_edit_form($item, $form) {
|
static function item_edit_form($item, $form) {
|
||||||
// Retrieve the existing height and width and display it on the form.
|
// Retrieve the existing height and width and display it on the form.
|
||||||
$form->edit_item->input("vidheight")->label(t("Video Height"))
|
if ($item->is_movie()) {
|
||||||
->value($item->height);
|
$form->edit_item->input("vidheight")->label(t("Video Height"))
|
||||||
$form->edit_item->input("vidwidth")->label(t("Video Width"))
|
->value($item->height);
|
||||||
->value($item->width);
|
$form->edit_item->input("vidwidth")->label(t("Video Width"))
|
||||||
|
->value($item->width);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static function item_edit_form_completed($item, $form) {
|
static function item_edit_form_completed($item, $form) {
|
||||||
|
Reference in New Issue
Block a user