/** * Run the page. * * This method is called after the page is created. It checks for the * type of action and executes that action. * Finally it calls the parent's run method. * * @return void * @access public * */ function run() { //if javascript is enabled if (CRM_Utils_Request::retrieve('confirmed', $form, '', '', 'GET')) { require_once 'CRM/Core/BAO/DrupalUser.php'; CRM_Core_BAO_DrupalUser::synchronize(); return; } $controller =& new CRM_Core_Controller_Simple('CRM_Admin_Form_DrupalUser', 'Synchronize Drupal Users', $mode); // set the userContext stack $session =& CRM_Core_Session::singleton(); $session->pushUserContext(CRM_Utils_System::url('civicrm/admin')); // $controller->setEmbedded( true ); $controller->process(); $controller->run(); parent::run(); }
/** * Function to process the form * * @access public * @return None */ function postProcess() { CRM_Core_BAO_DrupalUser::synchronize(); }