mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
merged from 1.9 :: MDL-12093 :: added function get_in_popup()
This commit is contained in:
parent
9bd7f37de1
commit
ee9beb53bf
1 changed files with 16 additions and 0 deletions
|
@ -6651,5 +6651,21 @@ function fix_align_rtl($align) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the page is displayed in a popup window.
|
||||||
|
* Gets the information from the URL parameter inpopup.
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*
|
||||||
|
* TODO Use a central function to create the popup calls allover Moodle and
|
||||||
|
* TODO In the moment only works with resources and probably questions.
|
||||||
|
*/
|
||||||
|
function get_in_popup() {
|
||||||
|
$inpopup = optional_param('inpopup', '', PARAM_BOOL);
|
||||||
|
|
||||||
|
return ($inpopup);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140:
|
// vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140:
|
||||||
?>
|
?>
|
Loading…
Add table
Add a link
Reference in a new issue