モジュールからテーマを使わないプレーンなテキストを表示するには?

Events happening in the community are now at Drupal community events on www.drupal.org.
tsukumoto's picture

モジュール内でメニューにアイテムを登録すると、
通常はモジュール内でフォームを作成してDrupalのコンテンツ領域に表示されると思いますが、
モジュール内からフォームもテーマも使用せずに、そのまま文字列を表示することはできるでしょうか?
イメージは真っ白な画面にただ「Hello world」の文字だけが出力されるものです。

よろしくお願いします。

Comments

exitでできました

tsukumoto's picture

やり方として良いかどうかはわからないのですが、
コールバック先の関数で
echo ”Hello World";
exit;
で実現できました。
ありがとうございます。

日本 コミュニティ: Drupal Japan User Group

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week