You are here

function varbase_support_preprocess_html in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.3

Implements template_preprocess_html().

File

modules/custom/varbase_support/includes/preprocess.inc, line 6

Code

function varbase_support_preprocess_html(&$variables) {
  if (arg(0) == 'node' && arg(1) == 'add' && arg(2) === NULL) {

    // Remove stupid classes added by drupal on wrong pages.
    $variables['classes_array'] = array_diff($variables['classes_array'], array(
      'page-node-add',
      'page-node',
    ));
  }
}