Why is my custom module not being recognised? I am trying to create a simple module by following the instructions in http://websmiths.co/blog/very-introduction-drupals-hookformalter.

I've created the following two files along with the content in them as below:

mysite_simplenews.info

name = Custom Example
description = Just a simple example module
version = 0.1
core = 7.x
package = Alpha Custom Modules


mysite_simplenews.module

&lt;?php


I've uploaded the module to the server, but it is not being picked up in the list of modules.

Is this because I am running Drupal 7 and the tutorial is for drupal 6? Is it because of the &lt;?php line in my .module file?
Take a look at Creating Drupal 7.x modules

Writing module .info files (Drupal 7.x)

Example
The following is a sample .info file:

name = Really Neat Widget
description = Provides a really neat widget for your site's sidebar.
core = 7.x
package = Views
dependencies[] = views
dependencies[] = panels
files[] = example.test
configure = admin/config/content/example