function setup_module($column, $module, $obj)
{
    global $form_data, $error, $error_msg;
    $can_mange_settings = false;
    if (PA::$login_uid) {
        // if user can delete network - he can change any settings data!
        $can_mange_settings = User::has_network_permissions(PA::$login_uid, array('delete_network'), true);
    }
    if ($can_mange_settings) {
        $obj->tpl_to_load = "configure";
        $obj->title = __('General Network Settings');
    } else {
        $obj->tpl_to_load = "default";
        $obj->title = __('Administration panel');
    }
    $obj->control_type = "basic";
    $obj->form_data = $form_data;
    $obj->error = $error;
    $obj->error_msg = $error_msg;
    $obj->is_edit = TRUE;
    $param['network_id'] = PA::$network_info->network_id;
    $obj->network_stats = Network::get_network_statistics($param);
    // check for meta network control access
    $obj->meta_network_reci_relation = FALSE;
    if (PA::$login_uid == SUPER_USER_ID && PA::$network_info->type == MOTHER_NETWORK_TYPE) {
        $obj->meta_network_reci_relation = TRUE;
    }
    //add variables to BlockModule
}
* [description including history]
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* @author [creator, or "Original Author"]
* @license http://bit.ly/aVWqRV PayAsYouGo License
* @copyright Copyright (c) 2010 Broadband Mechanics
* @package PeopleAggregator
*/
if (!isset($login_required)) {
    $login_required = TRUE;
    $use_theme = 'Beta';
    //TODO : Remove this when new UI is completely implemented.
    include_once "web/includes/page.php";
    $authorization_required = TRUE;
    $configure_permission = false;
    if (PA::$login_uid) {
        $configure_permission = User::has_network_permissions(PA::$login_uid, array('manage_themes'), true);
    }
    if (!$configure_permission) {
        //check applied to make sure that this file shouldn't be accesible directly through browser
        header('Location:' . PA::$url . PA_ROUTE_HOME_PAGE);
        exit;
    }
}
include_once "api/ModuleSetting/ModuleSetting.php";
$page_id = PAGE_HOMEPAGE;
if (!empty($_GET['page_id'])) {
    $page_details = ModuleSetting::get_pages_default_setting(array('page_id' => $_GET['page_id']));
    if (!empty($page_details)) {
        //check for valid page_id. Otherwise homepage will be the default page.
        $page_id = $_GET['page_id'];
    }