activating modules

7 views
Skip to first unread message

Michael Connors

unread,
Apr 14, 2012, 3:58:11 PM4/14/12
to zotonic-d...@googlegroups.com
Hi,

I have been activating modules needed by my sites like this:


%% @doc Initialize the site
init(Context) ->
    z_datamodel:manage(?MODULE, datamodel(), Context),
    z_module_manager:deactivate(mod_acl_adminonly, Context),
    z_module_manager:activate(mod_acl_simple_roles, Context),
    z_module_manager:activate(mod_contact, Context),
    z_module_manager:activate(mod_facebook, Context).

Is this the recommended way to configure modules for a site?

Michael
Reply all
Reply to author
Forward
0 new messages