Codekarate Content

Daily Dose of Drupal Episode #21

This episode works off the the previous episode to create a custom Drupal 7 form using the Drupal Form API, and then looks at how to submit data from the Drupal form into a Drupal database table.

In this episode you will learn:

  • How to use hook_menu, hook_permission, and drupal_get_form to create a custom Drupal form page
  • How to create a custom Drupal 7 form using the Drupal Form API
  • How to add a validation function to the Drupal 7 form
  • How to add a submit function the Drupal 7 form
Daily Dose of Drupal Episode #20

In this example we create a new Drupal 7 module with the purpose of creating a database table inside our Drupal 7 module. We look at hook_schema and the Drupal Schema API to create a new database table.

In this episode you will learn:

  • How to create a Drupal 7 module with an .install file
  • What hook_install, hook_uninstall, and other various installation hooks do inside your .install file
  • How to implement hook_schema in your Drupal 7 module
  • How to use the Schema API for create Drupal database tables
By shane
Mon, 2012-10-01 23:54
Daily Dose of Drupal Episode #19

This continues on the module we started last time and shows how to implement hook_cron to run periodic tasks on your Drupal website. Also goes over hook_mail and the drupal_mail function for creating and sending email messages within your Drupal 7 module.

In this episode you will learn:

  • How to implement hook_cron in a Drupal 7 module
  • How to implement hook_mail to set up email messages in your Drupal 7 module
  • How to trigger the sending of email in a Drupal 7 module with the drupal_mail function
Daily Dose of Drupal Episode #18

Learn how to create an administration form inside a Drupal module. In this episode we work with the Drupal 7 Form API to build out an administration section for a brand new module. This new module (called cronmonitor) will be completed in the next Daily Dose of Drupal episode (number 19).

In this episode you will learn:

  • How to build a Drupal administration form inside a Drupal 7 module
  • How to set the configure option inside your modules .info file
  • How to implement hook_menu and hook_permission to create an administration page
Daily Dose of Drupal Episode #17

In this episode we continue learning about Drupal 7 module development by looking at creating menu items with hook_menu() and creating permissions with hook_permission().

In this episode you will learn:

  • How to implement hook_menu() in you Drupal 7 module to create a new page on your Drupal site
  • How to implement hook_permission() in your Drupal 7 module to provide access control to your newly created page
By shane
Wed, 2012-09-26 23:16
Daily Dose of Drupal Episode #16

In this episode you will learn the very basics of Drupal 7 module development. From the info file, Drupal hooks, and the module file, this is a crash course to get you started.

In this episode you will learn:

  • How to create a very simple Drupal 7 module
  • How to create a Drupal 7 module .info file
  • How to create the main .module file
  • The importance of Drupal hooks and how they can be used to interact with the Drupal API
  • How to create a custom block inside your created Drupal 7 module using hook_block_info() and hook_block_view()
By shane
Tue, 2012-09-25 17:22
Daily Dose of Drupal Episode #15

In this episode we look at the Drupal 7 Media module and how it can be used to manage all different types of media on your Drupal website. If you are looking for a better file management experience on your Drupal site, the Media module may be able to help you out. It is also useful for displaying content from other websites such as audio, images, or video.

In this episode you will learn:

  • How the Drupal 7 Media module can be used to manage various types of media files on your Drupal site.
By shane
Tue, 2012-09-25 00:03
Daily Dose of Drupal Episode #14

The Drupal 7 Content Access module gives you fine grained access control for the various content types in your Drupal website. In this episode you will learn:

  • How to download and install the Drupal 7 Content Access Module
  • How to configure the Drupal 7 Content Access Module to limit view access to authenticated users and prevent anonymous users from viewing some content.
By shane
Sat, 2012-09-22 00:01
Daily Dose of Drupal Episode #13

A simple example showing how to theme a Drupal 7 webform created by the Drupal Webform module. If you need to change the structured HTML around your webform, this episode will help.

In this episode you will learn:

  • How to override the Drupal 7 Webform template file in your theme
  • How to access and display output of your Webform in the template file
By shane
Thu, 2012-09-20 23:41
Daily Dose of Drupal Episode #12

Today we take a deeper look at the webform module and see how it can be used to build out more complex forms. This is useful if you need to build more complex surveys or questionnaires on your Drupal 7 website.

In this episode you will learn:

  • How to create a more complex form with the Drupal 7 Webform module
  • How to create a multi-page form with the Drupal Webform module
  • How to use e-mail tokens in the Drupal Webform module

Pages