Make sure the item is actually a video...
This commit is contained in:
parent
a75d99dc1a
commit
9b48c339ef
@ -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