profile = DrupalInstaller::array_remove($vars, 'profile'); $installer->db = DrupalInstaller::array_remove($vars, 'db'); $installer->db_type = DrupalInstaller::array_remove($vars, 'db_type'); $installer->db_host = DrupalInstaller::array_remove($vars, 'db_host'); $installer->db_user = DrupalInstaller::array_remove($vars, 'db_user'); $installer->db_password = DrupalInstaller::array_remove($vars, 'db_password'); $installer->site_name = DrupalInstaller::array_remove($vars, 'site_name'); $installer->username = DrupalInstaller::array_remove($vars, 'username'); $installer->password = DrupalInstaller::array_remove($vars, 'password'); $installer->email = DrupalInstaller::array_remove($vars, 'email'); $installer->additionalParams = $vars; $installer->install($baseurl); } function origo_check_vars(&$vars) { if (!isset($vars['profile'])) throw new Exception('You must specify an array-entry "[\'profile\']" in the argument to "origo_install"'); if (!isset($vars['db'])) throw new Exception('You must specify an array-entry "[\'db\']" in the argument to "origo_install"'); if (!isset($vars['db_type'])) throw new Exception('You must specify an array-entry "[\'db_type\']" in the argument to "origo_install"'); if (!isset($vars['db_host'])) throw new Exception('You must specify an array-entry "[\'db_host\']" in the argument to "origo_install"'); if (!isset($vars['db_user'])) throw new Exception('You must specify an array-entry "[\'db_user\']" in the argument to "origo_install"'); if (!isset($vars['site_name'])) throw new Exception('You must specify an array-entry "[\'site_name\']" in the argument to "origo_install"'); if (!isset($vars['username'])) throw new Exception('You must specify an array-entry "[\'username\']" in the argument to "origo_install"'); if (!isset($vars['password'])) throw new Exception('You must specify an array-entry "[\'password\']" in the argument to "origo_install"'); if (!isset($vars['email'])) throw new Exception('You must specify an array-entry "[\'email\']" in the argument to "origo_install"'); if (!isset($vars['url'])) throw new Exception('You must specify an array-entry "[\'profile\']" in the argument to "origo_install"'); }