Returns a form ID for a Views form using the name and display of the View.
function views_form_id($view) {
$parts = array(
'views_form',
$view->storage
->get('name'),
$view->current_display,
);
return implode('_', $parts);
}