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 {
|
||||
static function item_edit_form($item, $form) {
|
||||
// Retrieve the existing height and width and display it on the form.
|
||||
$form->edit_item->input("vidheight")->label(t("Video Height"))
|
||||
->value($item->height);
|
||||
$form->edit_item->input("vidwidth")->label(t("Video Width"))
|
||||
->value($item->width);
|
||||
if ($item->is_movie()) {
|
||||
$form->edit_item->input("vidheight")->label(t("Video Height"))
|
||||
->value($item->height);
|
||||
$form->edit_item->input("vidwidth")->label(t("Video Width"))
|
||||
->value($item->width);
|
||||
}
|
||||
}
|
||||
|
||||
static function item_edit_form_completed($item, $form) {
|
||||
|
|
Reference in New Issue
Block a user