Hi,

I add a php block in the admin menu and It works. How can I create a local module (for downloading)?
The below-mentioned php code generate an error "Parse error: parse error, unexpected T_STRING in" in the admin section "modules":

$block['content'] .= '
<?php
... PHP block content ...
?>

Comments

Kobus’s picture

Hi,

For starters, the PHP tag is following the variable. That can't be right. A good idea is to look at one of the existing modules to see how a module is created. I suggest looking at the story.module, as it is by far this simplest module that I know of.

-- Kobus