You are here

function media_dialog_get_theme_name in D7 Media 7.2

Same name and namespace in other branches
  1. 7.4 media.module \media_dialog_get_theme_name()
  2. 7 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.

Generally the default theme will look terrible in the media browser. This will default to the administration theme, unless set otherwise.

2 string references to 'media_dialog_get_theme_name'
media_menu in ./media.module
Implements hook_menu().
media_wysiwyg_menu in modules/media_wysiwyg/media_wysiwyg.module
Implements hook_menu().

File

./media.module, line 541
Media API

Code

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