The machine name of custom view I created my own view thanks to Views module. How can I check the machine name of that view?
Go to the edit screen for your view. At the top right, just under Displays you will see a button labelled Edit view/name/description (right under the Save and Cancel buttons). This is a drop down. Click on it and choose export view.

The second item in the export is the machinr name of the view:

$view = new view();
$view-&gt;name = 'your_view_name';
$view-&gt;description = ...