[feature/jquery_clock] Remove not needed settings from portal_clock module

B3P-218
This commit is contained in:
Marc Alexander
2013-03-02 23:33:08 +01:00
parent 09faef4d74
commit 6b17f71941

View File

@@ -49,12 +49,6 @@ class portal_clock_module
public function get_template_side($module_id)
{
global $config, $template;
$template->assign_vars(array(
'CLOCK_SRC' => $config['board3_clock_src_' . $module_id],
));
return 'clock_side.html';
}
@@ -62,10 +56,7 @@ class portal_clock_module
{
return array(
'title' => 'ACP_PORTAL_CLOCK_SETTINGS',
'vars' => array(
'legend1' => 'ACP_PORTAL_CLOCK_SETTINGS',
'board3_clock_src_' . $module_id => array('lang' => 'ACP_PORTAL_CLOCK_SRC', 'validate' => 'string', 'type' => 'text:50:200', 'explain' => true, 'submit_type' => 'custom', 'submit' => 'check_file_src'),
),
'vars' => array(),
);
}
@@ -74,19 +65,11 @@ class portal_clock_module
*/
public function install($module_id)
{
set_config('board3_clock_src_' . $module_id, 'board3clock.swf');
return true;
}
public function uninstall($module_id)
{
global $db;
$del_config = array(
'board3_clock_src_' . $module_id,
);
$sql = 'DELETE FROM ' . CONFIG_TABLE . '
WHERE ' . $db->sql_in_set('config_name', $del_config);
return $db->sql_query($sql);
return true;
}
}