[feature/jquery_clock] Remove not needed settings from portal_clock module
B3P-218
This commit is contained in:
@@ -49,12 +49,6 @@ class portal_clock_module
|
|||||||
|
|
||||||
public function get_template_side($module_id)
|
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';
|
return 'clock_side.html';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,10 +56,7 @@ class portal_clock_module
|
|||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'title' => 'ACP_PORTAL_CLOCK_SETTINGS',
|
'title' => 'ACP_PORTAL_CLOCK_SETTINGS',
|
||||||
'vars' => array(
|
'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'),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -74,19 +65,11 @@ class portal_clock_module
|
|||||||
*/
|
*/
|
||||||
public function install($module_id)
|
public function install($module_id)
|
||||||
{
|
{
|
||||||
set_config('board3_clock_src_' . $module_id, 'board3clock.swf');
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function uninstall($module_id)
|
public function uninstall($module_id)
|
||||||
{
|
{
|
||||||
global $db;
|
return true;
|
||||||
|
|
||||||
$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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user