You are here

function tablefield_custom_theme in TableField 7.3

Implements hook_custom_theme().

File

./tablefield.module, line 1800
Provides a set of fields that can be used to store tabular data with a node.

Code

function tablefield_custom_theme() {

  // Ensure that if this is a valid POST request that we use the same theme
  // used by the referring form.
  if (isset($_POST['form_build_id']) && path_is_admin($_GET['q']) && user_access('view the administration theme')) {
    return variable_get('admin_theme');
  }
}