Example #1
0
	function delete($where)
	{
		//prevent the deletion of the super admins
		$where['super_admin'] = 'no';
		parent::delete($where);
		$CI =& get_instance();
		$CI->load->module_model('fuel','user_to_permissions_model');
		$CI->user_to_permissions_model->delete(array('user_id' => $where['id']));
	}
Example #2
0
 function delete($where)
 {
     parent::delete($where);
     $CI =& get_instance();
     $CI->load->module_model(FUEL_FOLDER, 'pagevariables_model');
     $CI->pagevariables_model->delete(array('page_id' => $where['id']));
 }
 /**
  * Overwrites parent model so as you won't accidentally delete the super admin user
  *
  * @access	public
  * @param	mixed The where condition to be applied to the delete (e.g. array('user_name' => 'darth'))
  * @return	void
  */
 public function delete($where)
 {
     //prevent the deletion of the super admins
     $where['super_admin'] = 'no';
     return parent::delete($where);
 }