Skip to content

Code Puppet

Menu
  • Home
  • Laravel
  • PHP
  • Android
  • Drupal

Category: Drupal 7

Drupal 7

Programmatically Inserting a Term into a Vocabulary in Drupal 7

We’ve covered how to programmatically create a vocabulary in a previous post. Here’s how to insert a term into our vocabulary, checking to make sure that the term doesn’t already …

Drupal 7

Programmatically Creating a Vocabulary in Drupal 7

If you want your module to create a custom vocabulary, implement hook_install() and hook_uninstall() in your mymodule.install file. The vocabularies will be created and deleted on install/uninstall of the module. …

Drupal 7

Adding Custom Fields to a Custom Content Type in Drupal 7

Creating a custom content type without any fields isn’t really useful. Fortunately, defining your own custom fields and attaching them to your custom content type is built into Drupal 7. …

Drupal 7

Creating a Custom Content Type in Drupal 7

If you have a custom module and you want to programmatically create a custom content type in Drupal 7, follow the steps below. 1. Implement hook_node_info() Define your new content …

Hey there! I build web apps and along the way I share tips & open source code for the Laravel community.

Popular Posts

  • Enabling External Access to Your Apache Web Server on Windows 7 Enabling External Access to Your Apache Web Server on Windows 7
  • Using Fragments in Android with FragmentActivity Using Fragments in Android with FragmentActivity
  • Saving a List of Strings in Android with SharedPreferences Saving a List of Strings in Android with SharedPreferences
  • Reversing a String in Java (In-Place) Reversing a String in Java (In-Place)
  • Android Uploading a File to a PHP Server Android Uploading a File to a PHP Server
  • Radix Sort in Java Radix Sort in Java
  • Directory Structure in Linux Directory Structure in Linux
  • How to Enable Swiping Between Multiple Screens in Android (Using Fragments) How to Enable Swiping Between Multiple Screens in Android (Using Fragments)
Join my Newsletter
Stay Connected
Copyright © 2025 Code Puppet – OnePress theme by FameThemes