mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Delete vconsole template method
This commit is contained in:
parent
e14f1580a1
commit
11372e5b94
@ -4196,6 +4196,23 @@ function visual_map_instanciate_template($id_layout_template, $name, $id_agent)
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Erases given id_layout_template
|
||||||
|
* @param int $id_layout_template target template to be deleted
|
||||||
|
* @return true OK, false ERR
|
||||||
|
*/
|
||||||
|
function visual_map_delete_template($id_layout_template) {
|
||||||
|
global $config;
|
||||||
|
|
||||||
|
if (!$id_layout_template) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// tlayout_template_data is erased using foreign key
|
||||||
|
return db_process_sql_delete('tlayout_template', array('id' => $id_layout_template));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of layout templates for given user.
|
* Get a list of layout templates for given user.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user