Cleanup css files and remove unused styles
[civicrm-core.git] / CRM / Admin / Form.php
index 315c7147cdfccd54ed822455de78bd0aa1f34937..ea32fd3169d923d1b33f8387e4c8b6b4fc6456b4 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  *
  * @package CRM
  * @copyright CiviCRM LLC (c) 2004-2015
- * $Id$
- *
  */
 
 /**
- * Base class for admin forms
+ * Base class for admin forms.
  */
 class CRM_Admin_Form extends CRM_Core_Form {
 
@@ -70,6 +68,8 @@ class CRM_Admin_Form extends CRM_Core_Form {
    * Basic setup.
    */
   public function preProcess() {
+    Civi::resources()->addStyleFile('civicrm', 'css/admin.css');
+
     $this->_id = $this->get('id');
     $this->_BAOName = $this->get('BAOName');
     $this->_values = array();
@@ -113,8 +113,6 @@ class CRM_Admin_Form extends CRM_Core_Form {
 
   /**
    * Add standard buttons.
-   *
-   * @return void
    */
   public function buildQuickForm() {
     if ($this->_action & CRM_Core_Action::VIEW || $this->_action & CRM_Core_Action::PREVIEW) {