Library

Drupal Module Basics

Info file

name = XXX
description = XXX
core = 7.x
package = API
version = 1.0

Module file

 'XXX',
                'page callback' => 'XXX_main',
                'access callback' => TRUE,
                'type' => MENU\_NORMAL\_ITEM,
        );

        return $items;
    }


    function XXX_main() {
        return "MY HTML OUTPUT";
    }

Leave a Reply