You are here

function media_dialog_get_theme_name in D7 Media 7

Same name and namespace in other branches
  1. 7.4 media.module \media_dialog_get_theme_name()
  2. 7.2 media.module \media_dialog_get_theme_name()
  3. 7.3 media.module \media_dialog_get_theme_name()

Theme callback used to identify when we are in a popup dialog.

We do this because most times the default theme will look terrible in the browser. So this will default to the administration theme, unless set otherwise.

Return value

string

1 string reference to 'media_dialog_get_theme_name'
media_menu in ./media.module
Implement of hook_menu().

File

./media.module, line 758
Media API

Code

function media_dialog_get_theme_name() {
  return media_variable_get('dialog_theme', variable_get('admin_theme'));
}