We have moved to Github. Please open tickets there.

Opened 2 years ago

Closed 2 years ago

#2904 closed Enhancement (fixed)

Add elgg_view_module helper function

Reported by: ewinslow Owned by: ewinslow
Priority: normal Milestone: Elgg 1.8.0
Component: UI/UX Version: Github Master
Severity: minor Keywords:
Cc: brett@… Difficulty: easy

Description

Since it's so common, add one just like elgg_view_image_block

elgg_view_module($type, $title, $body, $vars);

Where $type is "main" or "info" etc., automatically converted to elgg-module-$type.

Change History (3)

comment:1 Changed 2 years ago by cash

  • Component changed from Core to UI/UX
  • Difficulty set to easy
  • Milestone changed from Needs Review to Elgg 1.8

Agreed. It has been on my mental todo list - good to get a ticket on it. I like the $type suggestion!

comment:2 Changed 2 years ago by ewinslow

  • Owner set to ewinslow
  • Status changed from new to assigned

comment:3 Changed 2 years ago by ewinslow

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [svn:8135]) Fixes #2904: Converted most elgg_view('layout/objects/module') instances to elgg_view_module()

Note: See TracTickets for help on using tickets.