General

Zyxware default image4
| 3 min read
A patch is a small file which shows what was changed in a repository. It shows the new changes in an existing file, details of the new files in the current directory, file deletion details etc. A patch file can be pushed to the git repository so that it is useful in the future for updating the changes in the corresponding file. For creating a patch file in your current git repository, make changes in your files. Now open the terminal. For unstaged changes, type the following command,
Zyxware default image2
| 3 min read
To render a Drupal form to a node, drupal_build_form function is used. This function allows us to render all forms except the admin forms. Note that, admin forms didn't find success while rendering the same. In-order to render a form the following syntax is used,
Zyxware default image4
| 5 min read
Deleting a content type in Drupal 7 is very simple. We just go to admin/structure/types and click delete button of the content type which we need to delete. But in the case of Ubercart, there is no delete link in product content type (admin/structure/types). So how we can delete this?