call specific name of views from module Below code changes the all quantity label to none. i am trying to change quantity field label for specific views block for ubercart3. (so in product node, quantity labeled as quantity and in product views block, quantity field is not labeled.

function mymodule_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  if(strpos($form_id, 'uc_product_add_to_cart') !== FALSE){
    $form['qty']['#title'] = t('');
  }
}


How to call specific views from module? or is this something i should do in views template?
i tried the below code and qty label doesn't change.

if(strpos($form_id, 'uc_product_add_to_cart') !== FALSE){
  $view = $form_state['view'];
  if ($view-&gt;name == 'my_view_machine_name') {
    $form['qty']['#title'] = t('');
  }
}
You need to replace 'my_view_machine_name' with your actual view machine name.

To get view machine name, you can edit your view, and in the URL you will see it: admin/structure/views/view/machine_name/edit