When using the 'video filter' there is no need to specify height and width, why is it required here? Anyway to force the height and width and prevent the option of showing up during content creation? Just want users to simply submit links to content... nothing else.

Comments

gurvan’s picture

Title: Why are height and width required? » You can override this by settings these form element in your theme or in a custom module

If it's in your theme :

function YOUR_THEME_form_NODETYPE_node_form_alter(&$form, &$form_state) {
    $form['field_NAME']['und'][0]['height']['#type'] = "hidden";
    $form['field_NAME']['und'][0]['width']['#type'] = "hidden";
    $form['field_NAME']['und'][0]['autoplay']['#type'] = "hidden";
}

if it's in a custom module :

function YOUR_MODULE_form_NODETYPE_node_form_alter(&$form, &$form_state) {
    $form['field_NAME']['und'][0]['height']['#type'] = "hidden";
    $form['field_NAME']['und'][0]['width']['#type'] = "hidden";
    $form['field_NAME']['und'][0]['autoplay']['#type'] = "hidden";
}

Change YOUR_THEME or YOUR_MODULE by your theme or module name
Change NODETYPE by your node type name
Change field_NAME by the machine name of your field

Then you could use the fitvids module to autoresize all your videos on your site... enjoy :)

rufein’s picture

Another Solution:

The patch in this issue solve this problem

rufein’s picture

Status: Active » Closed (fixed)