function setup_module($column, $moduleName, $obj) { global $sb_mc_type, $cid, $ccid, $error_array, $err_album_name_exist, $content_type, $sb_types; global $display, $is_edit, $album_save_error, $data_array, $error, $sb_mc_type, $targets; global $show_external_blogs, $outputthis_error_mesg, $path_prefix; global $post_err; switch ($column) { case 'middle': $obj->get_user_albums(); $obj->author_id = $_SESSION['user']['id']; if (!empty($_REQUEST["sb_mc_type"])) { $content_type = 'SBMicroContent'; require_once "sb_content.php"; if (!empty($cid)) { $obj->set_id($cid); } $sb_mc_type = trim($_REQUEST["sb_mc_type"]); $temp_array = explode("/", $_REQUEST["sb_mc_type"]); if (count($temp_array) > 1) { // for getting the media, audio and video SB contents $display = $temp_array[0]; } else { $display = ""; } $obj->set_sb_vars($sb_mc_type, $cid, $ccid); $obj->error_array = $error_array; $obj->err_album_name_exist = $err_album_name_exist; $obj->content_type = $content_type; $obj->sb_types = $sb_types; $obj->display = $display; $obj->is_edit = $is_edit; if ($album_save_error) { $obj->set_error_msg($album_save_error); } $obj->tags = @$_POST['tags']; } else { $content_type = 'BlogPost'; $login_uid = $_SESSION['user']['id']; require_once "createcontent.php"; if (!empty($cid)) { $obj->set_id($cid); } if (strlen($error) > 0) { $obj->set_error_msg($error, $data_array); } $obj->display = 'blog'; } $obj->album_type = SbHelper::get_album_type($sb_mc_type); $obj->targets = $targets; $obj->show_external_blogs = $show_external_blogs; $obj->outputthis_error_mesg = $outputthis_error_mesg; $obj->is_edit = $is_edit; $obj->ccid = $ccid; break; } }