Make sure the item is actually a video...
This commit is contained in:
parent
a75d99dc1a
commit
9b48c339ef
@ -20,11 +20,13 @@
|
||||
class videodimensions_event_Core {
|
||||
static function item_edit_form($item, $form) {
|
||||
// Retrieve the existing height and width and display it on the form.
|
||||
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) {
|
||||
// Save the new height and width to the database.
|
||||
|
Reference in New Issue
Block a user